Code center > Darwinbots Program Source Code
The shots erray is locked temporarly
Botsareus:
There is more then one like that , did you get all of them?
Numsgil:
I changed the createshot function to use byval, which fixes all the calls to it
Botsareus:
Brilliant
In the mean while I am evolving robots as we speack, nothing to watch on tv so I set it to high priority and "chillin'" on this forum.
Botsareus:
Num , this does not fix all of the problem , the following also causes it:
"' calculates next shots position
Public Sub updateshots()"
uses "With Shots(t)" in the code
when a -5 shot gets checked it calls on "takepoison"
here is what happens in takepoison if the robot is dead: "KillRobot n"
after that it goes to "makepoff" , thats were another problem is, because we are still working "with .shots(t)" it is still keeping the array locked, that basterd. :D
If I find more I'll let you know
Numsgil:
No, that should be okay, since it's not rediming the shots array inside the function.
If I understand it right, that is. If you actually catch another such problem, we can fix it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version