Reply to Problem detecting (lack of) enemies.
If you don't have an account, just leave the password field blank.
Ran into something odd when trying to put together some fixes for Scarab - it appears to be the cause of the problems with books on level 3 of the TOA and with getting a bottle of water in the oasis area. Using this :-
if (get_sprite_with_this_brain(9, ¤t_sprite) != 0)
{
return;
}
Caused the script to end when no brain 9 sprites were on screen. Trying to work around it, I found that this :-
int &stuff = get_sprite_with_this_brain(9, ¤t_sprite);
if (&stuff != 0)
return;
Works fine. Just so long as I've got it working I'm happy, but can anyone give me any ideas as to what's wrong with the first one?
if (get_sprite_with_this_brain(9, ¤t_sprite) != 0)
{
return;
}
Caused the script to end when no brain 9 sprites were on screen. Trying to work around it, I found that this :-
int &stuff = get_sprite_with_this_brain(9, ¤t_sprite);
if (&stuff != 0)
return;
Works fine. Just so long as I've got it working I'm happy, but can anyone give me any ideas as to what's wrong with the first one?