I don't want this function to be called when the game_state = 1,2,or 3.
I don't understand why the first example doesn't work, but
if written the second way, it does work.
Code:
starter rival_activity()
{
while(game_state == 0)
{
snd_play(bad_news_snd,100,0);
wait(1);
}
}
Code:
starter rival_activity()
{
while(1)
{
if(game_state == 0)
{
snd_play(bad_news_snd,100,0);
}
wait(1);
}
}