removed unneeded spaces in request texts
[rocksndiamonds.git] / src / game_mm / mm_game.c
index 7d22eb30013d94876aed548f120b7846243f9270..8e45cfb8da103fe66817e20deaba290ff3a2d47a 100644 (file)
@@ -357,7 +357,7 @@ static boolean CheckLaserPixel(int x, int y)
   return (pixel == WHITE_PIXEL);
 }
 
-static void CheckExitMM()
+static void CheckExitMM(void)
 {
   int exit_element = EL_EMPTY;
   int exit_x = 0;
@@ -517,7 +517,7 @@ static void InitField(int x, int y, boolean init_game)
   }
 }
 
-static void InitCycleElements_RotateSingleStep()
+static void InitCycleElements_RotateSingleStep(void)
 {
   int i;
 
@@ -542,7 +542,7 @@ static void InitCycleElements_RotateSingleStep()
   }
 }
 
-static void InitLaser()
+static void InitLaser(void)
 {
   int start_element = Feld[laser.start_edge.x][laser.start_edge.y];
   int step = (IS_LASER(start_element) ? 4 : 0);
@@ -580,7 +580,7 @@ static void InitLaser()
                            native_mm_level.laser_blue  * 0xFF);
 }
 
-void InitGameEngine_MM()
+void InitGameEngine_MM(void)
 {
   int i, x, y;
 
@@ -667,7 +667,7 @@ void InitGameEngine_MM()
   DrawLevel_MM();
 }
 
-void InitGameActions_MM()
+void InitGameActions_MM(void)
 {
   int num_init_game_frames = INIT_GAME_ACTIONS_DELAY;
   int cycle_steps_done = 0;
@@ -778,7 +778,7 @@ void AddDamagedField(int ex, int ey)
   laser.num_damages++;
 }
 
-boolean StepBehind()
+static boolean StepBehind(void)
 {
   if (laser.num_edges)
   {
@@ -805,7 +805,7 @@ static int getMaskFromElement(int element)
     return IMG_MM_MASK_CIRCLE;
 }
 
-int ScanPixel()
+static int ScanPixel(void)
 {
   int hit_mask = 0;
 
@@ -882,7 +882,7 @@ int ScanPixel()
   return hit_mask;
 }
 
-void ScanLaser()
+void ScanLaser(void)
 {
   int element;
   int end = 0, rf = laser.num_edges;
@@ -1069,7 +1069,7 @@ void ScanLaser()
 #endif
 }
 
-void DrawLaserExt(int start_edge, int num_edges, int mode)
+static void DrawLaserExt(int start_edge, int num_edges, int mode)
 {
   int element;
   int elx, ely;
@@ -1342,7 +1342,7 @@ void DrawLaser(int start_edge, int mode)
   game_mm.laser_enabled = mode;
 }
 
-void DrawLaser_MM()
+void DrawLaser_MM(void)
 {
   DrawLaser(0, game_mm.laser_enabled);
 }
@@ -2286,7 +2286,7 @@ boolean HitAbsorbingWalls(int element, int hit_mask)
   return TRUE;
 }
 
-void OpenExit(int x, int y)
+static void OpenExit(int x, int y)
 {
   int delay = 6;
 
@@ -2311,7 +2311,7 @@ void OpenExit(int x, int y)
   }
 }
 
-void OpenSurpriseBall(int x, int y)
+static void OpenSurpriseBall(int x, int y)
 {
   int delay = 2;
 
@@ -2348,7 +2348,7 @@ void OpenSurpriseBall(int x, int y)
   }
 }
 
-void MeltIce(int x, int y)
+static void MeltIce(int x, int y)
 {
   int frames = 5;
   int delay = 5;
@@ -2397,7 +2397,7 @@ void MeltIce(int x, int y)
   }
 }
 
-void GrowAmoeba(int x, int y)
+static void GrowAmoeba(int x, int y)
 {
   int frames = 5;
   int delay = 1;
@@ -2494,7 +2494,7 @@ static void Explode_MM(int x, int y, int phase, int mode)
     {
       Store[x][y] = EL_EMPTY;
 
-      game.restart_game_message = "Bomb killed Mc Duffin ! Play it again ?";
+      game.restart_game_message = "Bomb killed Mc Duffin! Play it again?";
     }
 
     Feld[x][y] = Store[x][y];
@@ -2959,7 +2959,7 @@ void RotateMirror(int x, int y, int button)
   }
 }
 
-void AutoRotateMirrors()
+static void AutoRotateMirrors(void)
 {
   int x, y;
 
@@ -3186,10 +3186,10 @@ static void GameActions_MM_Ext(struct MouseActionInfo action, boolean warp_mode)
 
       SetTileCursorActive(FALSE);
 
-      game.restart_game_message = "Out of magic energy ! Play it again ?";
+      game.restart_game_message = "Out of magic energy! Play it again?";
 
 #if 0
-      if (Request("Out of magic energy ! Play it again ?",
+      if (Request("Out of magic energy! Play it again?",
                  REQ_ASK | REQ_STAY_CLOSED))
       {
        InitGame();
@@ -3320,10 +3320,10 @@ static void GameActions_MM_Ext(struct MouseActionInfo action, boolean warp_mode)
 
       SetTileCursorActive(FALSE);
 
-      game.restart_game_message = "Magic spell hit Mc Duffin ! Play it again ?";
+      game.restart_game_message = "Magic spell hit Mc Duffin! Play it again?";
 
 #if 0
-      if (Request("Magic spell hit Mc Duffin ! Play it again ?",
+      if (Request("Magic spell hit Mc Duffin! Play it again?",
                  REQ_ASK | REQ_STAY_CLOSED))
       {
        InitGame();
@@ -3367,7 +3367,7 @@ static void GameActions_MM_Ext(struct MouseActionInfo action, boolean warp_mode)
     laser.num_edges = 0;
     Bang_MM(laser.start_edge.x, laser.start_edge.y);
 
-    if (Request("Bomb killed Mc Duffin ! Play it again ?",
+    if (Request("Bomb killed Mc Duffin! Play it again?",
                REQ_ASK | REQ_STAY_CLOSED))
     {
       InitGame();
@@ -3776,7 +3776,7 @@ void GameActions_MM(struct MouseActionInfo action, boolean warp_mode)
   CheckSingleStepMode_MM(element_clicked, button_released);
 }
 
-void MovePacMen()
+void MovePacMen(void)
 {
   int mx, my, ox, oy, nx, ny;
   int element;
@@ -3881,7 +3881,7 @@ void MovePacMen()
   }
 }
 
-void GameWon_MM()
+void GameWon_MM(void)
 {
   int hi_pos;
   boolean raise_level = FALSE;
@@ -3965,7 +3965,7 @@ void GameWon_MM()
 
   CloseDoor(DOOR_CLOSE_1);
 
-  Request("Level solved !", REQ_CONFIRM);
+  Request("Level solved!", REQ_CONFIRM);
 
   if (level_nr == leveldir_current->handicap_level)
   {
@@ -4000,7 +4000,7 @@ void GameWon_MM()
   BackToFront();
 }
 
-int NewHiScore_MM()
+int NewHiScore_MM(void)
 {
   int k, l;
   int position = -1;
@@ -4281,7 +4281,7 @@ void SaveEngineSnapshotValues_MM(ListNode **buffers)
   engine_snapshot_mm.overload_delay = overload_delay;
 }
 
-void LoadEngineSnapshotValues_MM()
+void LoadEngineSnapshotValues_MM(void)
 {
   int x, y;
 
@@ -4323,7 +4323,7 @@ void LoadEngineSnapshotValues_MM()
   energy_delay   = engine_snapshot_mm.energy_delay;
   overload_delay = engine_snapshot_mm.overload_delay;
 
-  RedrawPlayfield_MM(TRUE);
+  RedrawPlayfield_MM();
 }
 
 static int getAngleFromTouchDelta(int dx, int dy,  int base)