game.panel.active = TRUE;
game.no_level_time_limit = (level.time == 0);
+ game.time_limit = (setup.time_limit);
game.yamyam_content_nr = 0;
game.robot_wheel_active = FALSE;
DisplayGameControlValues();
- if (!TimeLeft && setup.time_limit)
+ if (!TimeLeft && game.time_limit)
for (i = 0; i < MAX_PLAYERS; i++)
KillPlayer(&stored_player[i]);
}
{
TimeLeft--;
- if (TimeLeft <= 10 && setup.time_limit && !game.LevelSolved)
+ if (TimeLeft <= 10 && game.time_limit && !game.LevelSolved)
PlaySound(SND_GAME_RUNNING_OUT_OF_TIME);
game_panel_controls[GAME_PANEL_TIME].value = TimeLeft;
DisplayGameControlValues();
- if (!TimeLeft && setup.time_limit && !game.LevelSolved)
+ if (!TimeLeft && game.time_limit && !game.LevelSolved)
for (i = 0; i < MAX_PLAYERS; i++)
KillPlayer(&stored_player[i]);
}
{
TimeLeft--;
- if (TimeLeft <= 10 && setup.time_limit)
+ if (TimeLeft <= 10 && game.time_limit)
PlaySound(SND_GAME_RUNNING_OUT_OF_TIME);
/* this does not make sense: game_panel_controls[GAME_PANEL_TIME].value
game_panel_controls[GAME_PANEL_TIME].value = TimeLeft;
- if (!TimeLeft && setup.time_limit)
+ if (!TimeLeft && game.time_limit)
{
if (level.game_engine_type == GAME_ENGINE_TYPE_EM)
game_em.lev->killed_out_of_time = TRUE;
boolean explosions_delayed;
boolean envelope_active;
boolean no_level_time_limit; // (variable only in very special case)
+ boolean time_limit; // forced by setup option
int time_final; // time (in seconds) or steps left or played
int score_time_final; // time (in frames) or steps played