Author Topic: DNA flow possible error  (Read 2514 times)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
DNA flow possible error
« 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.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
DNA flow possible error
« Reply #1 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.
Many beers....