renamed some variables to better describe their purpose
authorHolger Schemel <info@artsoft.org>
Thu, 20 Feb 2020 08:55:47 +0000 (09:55 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 19 May 2020 16:19:59 +0000 (18:19 +0200)
src/game.c
src/game.h
src/game_em/graphics.c
src/game_em/logic.c

index 5164505efa8a7e7d0dd81b163095a7fd3335756e..23650858360e773404ce8b050b1bbffba1234266 100644 (file)
@@ -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)
   {
index a4b1b0c5951e11bf8e8f55e67b60c83dca41882c..ae58fc3965e9e81794b4a0475248adfa3dab1b73 100644 (file)
@@ -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;
index c03267a1e7e84fa9ab9fda27a34e70376306adda..b36f78cb1981913ba5846552571edfa24f182034 100644 (file)
@@ -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);
index cd2028c9e97e56ccd905c4e5fc249379609be22d..001e47b0bb4516e591d572d8f7aac307f8536fcc 100644 (file)
@@ -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;