return FALSE;
}
-void GameWon(void)
+static boolean GameWon(void)
{
static int time_count_steps;
static int time, time_final;
// do not start end game actions before the player stops moving (to exit)
if (local_player->active && local_player->MovPos)
- return;
+ return FALSE;
// calculate final game values after player finished walking into exit
LevelSolved_SetFinalGameValues();
{
game_over_delay_1--;
- return;
+ return FALSE;
}
int time_to_go = ABS(time_final - time);
else
PlaySound(SND_GAME_LEVELTIME_BONUS);
- return;
+ return FALSE;
}
if (health != health_final)
{
game_over_delay_2--;
- return;
+ return FALSE;
}
int health_count_dir = (health < health_final ? +1 : -1);
else
PlaySound(SND_GAME_LEVELTIME_BONUS);
- return;
+ return FALSE;
}
}
{
game_over_delay_3--;
- return;
+ return FALSE;
}
GameEnd();
+
+ return TRUE;
}
void GameEnd(void)
void InitGame(void);
void UpdateEngineValues(int, int, int, int);
-void GameWon(void);
void GameEnd(void);
void MergeServerScore(void);