From 5af7a60ac60b406852cfa7c445a60e3573124944 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 24 Jun 2022 16:36:26 +0200 Subject: [PATCH] renamed variable --- src/game.c | 16 ++++++++-------- src/game.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/game.c b/src/game.c index abf350ce..01bea5ab 100644 --- a/src/game.c +++ b/src/game.c @@ -2239,7 +2239,7 @@ static void UpdateGameControlValues(void) game_sp.time_played : level.game_engine_type == GAME_ENGINE_TYPE_MM ? game_mm.energy_left : - game.no_time_limit ? TimePlayed : TimeLeft); + game.no_level_time_limit ? TimePlayed : TimeLeft); int score = (game.LevelSolved ? game.LevelSolved_CountingScore : level.game_engine_type == GAME_ENGINE_TYPE_EM ? @@ -3818,7 +3818,7 @@ void InitGame(void) game.panel.active = TRUE; - game.no_time_limit = (level.time == 0); + game.no_level_time_limit = (level.time == 0); game.yamyam_content_nr = 0; game.robot_wheel_active = FALSE; @@ -4726,7 +4726,7 @@ void InitAmoebaNr(int x, int y) static void LevelSolved_SetFinalGameValues(void) { - game.time_final = (game.no_time_limit ? TimePlayed : TimeLeft); + game.time_final = (game.no_level_time_limit ? TimePlayed : TimeLeft); game.score_time_final = (level.use_step_counter ? TimePlayed : TimePlayed * FRAMES_PER_SECOND + TimeFrames); @@ -4835,7 +4835,7 @@ void GameWon(void) time_final = 0; time_frames = time_frames_left; } - else if (game.no_time_limit && TimePlayed < time_final_max) + else if (game.no_level_time_limit && TimePlayed < time_final_max) { time_final = time_final_max; time_frames = time_frames_final_max - time_frames_played; @@ -11648,7 +11648,7 @@ static void CheckLevelTime_StepCounter(void) for (i = 0; i < MAX_PLAYERS; i++) KillPlayer(&stored_player[i]); } - else if (game.no_time_limit && !game.all_players_gone) + else if (game.no_level_time_limit && !game.all_players_gone) { game_panel_controls[GAME_PANEL_TIME].value = TimePlayed; @@ -11703,12 +11703,12 @@ static void CheckLevelTime(void) KillPlayer(&stored_player[i]); } } - else if (game.no_time_limit && !game.all_players_gone) + else if (game.no_level_time_limit && !game.all_players_gone) { game_panel_controls[GAME_PANEL_TIME].value = TimePlayed; } - game_em.lev->time = (game.no_time_limit ? TimePlayed : TimeLeft); + game_em.lev->time = (game.no_level_time_limit ? TimePlayed : TimeLeft); } if (tape.recording || tape.playing) @@ -14882,7 +14882,7 @@ static int DigField(struct PlayerInfo *player, if (level.time > 0 || level.use_time_orb_bug) { TimeLeft += level.time_orb_time; - game.no_time_limit = FALSE; + game.no_level_time_limit = FALSE; game_panel_controls[GAME_PANEL_TIME].value = TimeLeft; diff --git a/src/game.h b/src/game.h index 94144e3e..dee0f9cd 100644 --- a/src/game.h +++ b/src/game.h @@ -203,7 +203,7 @@ struct GameInfo boolean explosions_delayed; boolean envelope_active; - boolean no_time_limit; // (variable only in very special case) + boolean no_level_time_limit; // (variable only in very special case) int time_final; // time (in seconds) or steps left or played int score_time_final; // time (in frames) or steps played -- 2.34.1