The Dink Network

Reply to Problem detecting (lack of) enemies.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
July 14th 2005, 02:37 PM
fairy.gif
Arik
Peasant He/Him
 
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, &current_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, &current_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?