changed variable name
authorHolger Schemel <info@artsoft.org>
Tue, 30 Oct 2018 19:15:42 +0000 (20:15 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 30 Oct 2018 19:15:42 +0000 (20:15 +0100)
src/game.c
src/game_sp/DoGameStuff.c
src/game_sp/MainGameLoop.c
src/game_sp/Murphy.c
src/game_sp/export.h
src/game_sp/main.c

index 2fb1b686c7ae07a5482a68cc21e459993164d4b1..a780952b9749960b09146a81745a8dbf496be539 100644 (file)
@@ -11134,17 +11134,17 @@ static void CheckLevelSolved(void)
   }
   else if (level.game_engine_type == GAME_ENGINE_TYPE_SP)
   {
-    if (game_sp.LevelSolved &&
-       !game_sp.GameOver)                              // game won
+    if (game_sp.level_solved &&
+       !game_sp.game_over)                             // game won
     {
       PlayerWins(local_player);
 
-      game_sp.GameOver = TRUE;
+      game_sp.game_over = TRUE;
 
       AllPlayersGone = TRUE;
     }
 
-    if (game_sp.GameOver)                              // game lost
+    if (game_sp.game_over)                             // game lost
       AllPlayersGone = TRUE;
   }
   else if (level.game_engine_type == GAME_ENGINE_TYPE_MM)
@@ -15043,7 +15043,7 @@ boolean checkGameFailed(void)
   if (level.game_engine_type == GAME_ENGINE_TYPE_EM)
     return (level.native_em_level->lev->home > 0);
   else if (level.game_engine_type == GAME_ENGINE_TYPE_SP)
-    return (game_sp.GameOver && !game_sp.LevelSolved);
+    return (game_sp.game_over && !game_sp.level_solved);
   else if (level.game_engine_type == GAME_ENGINE_TYPE_MM)
     return (game_mm.game_over && !game_mm.level_solved);
   else                         // GAME_ENGINE_TYPE_RND
index fbea5551834612c87b0b0da70146a652ba7987c8..79b102d6dbfd8307df3e0f283b463cf116d929cd 100644 (file)
@@ -71,8 +71,8 @@ void subDoGameStuff(void)
   if (KillMurphyFlag == 1 || MurphyMoveCounter == 0)
   {
     if (LeadOutCounter == 0 &&
-       !game_sp.LevelSolved &&
-       !game_sp.GameOver)
+       !game_sp.level_solved &&
+       !game_sp.game_over)
     {
       KillMurphyFlag = 0;                      // no more "kill Murphy"
       ExplodeFieldSP(MurphyExplodePos);                // Explode
index 72d0e283a79f234860d7532ad584cf68b86cac48..e1a20b102466cfcf641c694ffa8bfc9b5125b15a 100644 (file)
@@ -75,8 +75,8 @@ void subMainGameLoop_Main(byte action, boolean warp_mode)
   // ---------------------- END OF GAME-BUSY LOOP (including lead-out) ---------
 
   // if the game is not won when reaching this point, then it is lost
-  if (!game_sp.LevelSolved)
-    game_sp.GameOver = TRUE;
+  if (!game_sp.level_solved)
+    game_sp.game_over = TRUE;
 }
 
 void subCalculateScreenScrollPos(void)
index c0a148fd909df8866a04ef7e3a03f220f6318d8e..39826cbc83c81dda90b87693570fca5b4923b1b4 100644 (file)
@@ -962,7 +962,7 @@ loc_g_6756:
   if (LowByte(InfotronsNeeded) != 0)
     return;
 
-  game_sp.LevelSolved = TRUE;
+  game_sp.level_solved = TRUE;
 
   subSoundFX(*si, fiExit, actPassing);
 
index 1ac2d311d4b40cbd6ab90ea0b4b4d47e3f00ba61..787bb45b9d7a1bfda4e2b07b505812c257675ae7 100644 (file)
@@ -91,8 +91,8 @@ struct GlobalInfo_SP
 
 struct GameInfo_SP
 {
-  boolean LevelSolved;
-  boolean GameOver;
+  boolean level_solved;
+  boolean game_over;
 
   // needed for updating panel
   int time_played;
index 02eeea93507dcec10d11302a2b938890af7e1d79..2a79f6da6ae1566f9736d1c738948abc682c7c06 100644 (file)
@@ -18,8 +18,8 @@ void InitGameEngine_SP(void)
 
   gfx.anim_random_frame = -1;  // (use simple, ad-hoc random numbers)
 
-  game_sp.LevelSolved = FALSE;
-  game_sp.GameOver = FALSE;
+  game_sp.level_solved = FALSE;
+  game_sp.game_over = FALSE;
 
   game_sp.time_played = 0;
   game_sp.infotrons_still_needed = native_sp_level.header.InfotronsNeeded;