Darwinbots Forum

Code center => Bugs and fixes => Topic started by: Numsgil on April 15, 2006, 01:48:30 PM

Title: DNA flow possible error
Post by: Numsgil on April 15, 2006, 01:48:30 PM
I'm not 100% sure on this one, but I found a similar bug in the C++ source.

THe CurrentFlow variable wasn't being reset to CLEAR when a new bot began executing.  The possible result of this could be bots that inherit the flow control from the previous bot that was executed.

For Instance:

Bot 1:
start

Bot 2:
10 .up store

The rules should prevent bot 2 from executing that store.  Instead it's allowed because the CurrentFlow flag was still set to BODY.
Title: DNA flow possible error
Post by: EricL on April 15, 2006, 03:14:58 PM
Nice catch.  This does indeed appear to be in 2.4X.  2.42.3 will have the fix.