I've looked through the known bugs but it could be that this kind of behaviour is intended for some reason or there is something else i am missing.
These lines give different behaviour in the executable:
Code: Select all
' version 1
if MultiKey(FB.SC_S) or ( gStats.turns=1 and DEBUG_EVO_SIM=1) then...
' version 2
if MultiKey(FB.SC_S) or ( DEBUG_EVO_SIM=1 and gStats.turns=1) then...
There are thousands lines of code, but i can assure you that everything else is working fine.
DEBUG_EVO_SIM is a const, gStats.turns is an integer. Version 2 works as intended but version 1 seems to be true every turn ( not only the first one) and even when DEBUG_EVO_SIM was set to '0'.
Compiled with newest and an older version of fbc.