From: Holger Schemel Date: Thu, 20 Feb 2020 08:55:47 +0000 (+0100) Subject: renamed some variables to better describe their purpose X-Git-Tag: 4.2.0.0~85 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=11f6cf58952f5e9f40ce021a973a0f00ecbf1e9c;p=rocksndiamonds.git renamed some variables to better describe their purpose --- diff --git a/src/game.c b/src/game.c index 5164505e..23650858 100644 --- a/src/game.c +++ b/src/game.c @@ -3938,7 +3938,7 @@ void InitGame(void) game.centered_player_nr = (network_playing ? local_player->index_nr : -1); game.centered_player_nr_next = game.centered_player_nr; game.set_centered_player = FALSE; - game.set_centered_player_fast = FALSE; + game.set_centered_player_wrap = FALSE; if (network_playing && tape.recording) { diff --git a/src/game.h b/src/game.h index a4b1b0c5..ae58fc39 100644 --- a/src/game.h +++ b/src/game.h @@ -237,7 +237,7 @@ struct GameInfo int centered_player_nr; int centered_player_nr_next; boolean set_centered_player; - boolean set_centered_player_fast; + boolean set_centered_player_wrap; // values for random number generator initialization after snapshot unsigned int num_random_calls; diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index c03267a1..b36f78cb 100644 --- a/src/game_em/graphics.c +++ b/src/game_em/graphics.c @@ -554,7 +554,7 @@ static boolean checkIfAllPlayersAreVisible(int center_x, int center_y) void RedrawPlayfield_EM(boolean force_redraw) { boolean draw_new_player_location = FALSE; - boolean draw_new_player_location_fast = FALSE; + boolean draw_new_player_location_wrap = FALSE; boolean quick_relocation = setup.quick_switch; int max_center_distance_player_nr = getMaxCenterDistancePlayerNr(screen_x, screen_y); @@ -593,11 +593,11 @@ void RedrawPlayfield_EM(boolean force_redraw) game.centered_player_nr = game.centered_player_nr_next; draw_new_player_location = TRUE; - draw_new_player_location_fast = game.set_centered_player_fast; + draw_new_player_location_wrap = game.set_centered_player_wrap; force_redraw = TRUE; game.set_centered_player = FALSE; - game.set_centered_player_fast = FALSE; + game.set_centered_player_wrap = FALSE; } if (game.centered_player_nr == -1) @@ -633,7 +633,7 @@ void RedrawPlayfield_EM(boolean force_redraw) int screen_xx = VALID_SCREEN_X(sx); int screen_yy = VALID_SCREEN_Y(sy); - if (draw_new_player_location_fast) + if (draw_new_player_location_wrap) wait_delay_value /= 4; SetVideoFrameDelay(wait_delay_value); diff --git a/src/game_em/logic.c b/src/game_em/logic.c index cd2028c9..001e47b0 100644 --- a/src/game_em/logic.c +++ b/src/game_em/logic.c @@ -7301,7 +7301,7 @@ static void logic_players(void) game.centered_player_nr_next = i; game.set_centered_player = TRUE; - game.set_centered_player_fast = TRUE; + game.set_centered_player_wrap = TRUE; } ply[i].oldx = ply[i].x;