removed unused function parameters
authorHolger Schemel <info@artsoft.org>
Sat, 22 Oct 2022 10:26:28 +0000 (12:26 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 22 Oct 2022 10:26:28 +0000 (12:26 +0200)
This issue was found by using GCC with option "-Wextra".

src/game.c
src/game_em/export.h
src/game_em/game.c
src/game_mm/export.h
src/game_mm/mm_game.c
src/game_sp/MainGameLoop.c
src/game_sp/MainGameLoop.h
src/game_sp/export.h
src/game_sp/main.c

index 3a2c1a11db4b5bf290f038fe0124b6d59faaf6a2..ce032327ab47d2837007a85944a8940a30d83ca6 100644 (file)
@@ -11990,25 +11990,23 @@ void GameActions(void)
 void GameActions_EM_Main(void)
 {
   byte effective_action[MAX_PLAYERS];
-  boolean warp_mode = (tape.playing && tape.warp_forward && !tape.pausing);
   int i;
 
   for (i = 0; i < MAX_PLAYERS; i++)
     effective_action[i] = stored_player[i].effective_action;
 
-  GameActions_EM(effective_action, warp_mode);
+  GameActions_EM(effective_action);
 }
 
 void GameActions_SP_Main(void)
 {
   byte effective_action[MAX_PLAYERS];
-  boolean warp_mode = (tape.playing && tape.warp_forward && !tape.pausing);
   int i;
 
   for (i = 0; i < MAX_PLAYERS; i++)
     effective_action[i] = stored_player[i].effective_action;
 
-  GameActions_SP(effective_action, warp_mode);
+  GameActions_SP(effective_action);
 
   for (i = 0; i < MAX_PLAYERS; i++)
   {
@@ -12021,9 +12019,7 @@ void GameActions_SP_Main(void)
 
 void GameActions_MM_Main(void)
 {
-  boolean warp_mode = (tape.playing && tape.warp_forward && !tape.pausing);
-
-  GameActions_MM(local_player->effective_mouse_action, warp_mode);
+  GameActions_MM(local_player->effective_mouse_action);
 }
 
 void GameActions_RND_Main(void)
index bb7008940444d93850993d21f551ecd15fa5b4e6..409a04e43525f8fccdf877aaeb304fe50857e626 100644 (file)
@@ -108,7 +108,7 @@ void em_close_all(void);
 void InitGfxBuffers_EM(void);
 
 void InitGameEngine_EM(void);
-void GameActions_EM(byte[MAX_PLAYERS], boolean);
+void GameActions_EM(byte[MAX_PLAYERS]);
 
 unsigned int InitEngineRandom_EM(int);
 
index 8443ff0535dede2d67982d5150138b042a72ec00..cb7a1cbfc09f7b9a4995535ce36c75368b53d0dd 100644 (file)
@@ -82,7 +82,7 @@ void InitGameEngine_EM(void)
   RedrawPlayfield_EM(FALSE);
 }
 
-void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode)
+void GameActions_EM(byte action[MAX_PLAYERS])
 {
   int i;
   boolean any_player_dropping = FALSE;
index 21e20cdc8462f0f441ff853b3eef39622fc8f221..3e51848e1cc609a30dd4cd693fde5828de0b9cba 100644 (file)
@@ -218,7 +218,7 @@ void InitGfxBuffers_MM(void);
 
 void InitGameEngine_MM(void);
 void InitGameActions_MM(void);
-void GameActions_MM(struct MouseActionInfo, boolean);
+void GameActions_MM(struct MouseActionInfo);
 
 void DrawLaser_MM(void);
 void DrawTileCursor_MM(int, boolean);
index 0403795fcf48c21e334e4368807ce6180626b4c0..093e837363e306753ca2f178aa1340680c7c1898 100644 (file)
@@ -3056,7 +3056,7 @@ void ColorCycling(void)
   }
 }
 
-static void GameActions_MM_Ext(struct MouseActionInfo action, boolean warp_mode)
+static void GameActions_MM_Ext(struct MouseActionInfo action)
 {
   int element;
   int x, y, i;
@@ -3673,12 +3673,12 @@ static void GameActions_MM_Ext(struct MouseActionInfo action, boolean warp_mode)
   return;
 }
 
-void GameActions_MM(struct MouseActionInfo action, boolean warp_mode)
+void GameActions_MM(struct MouseActionInfo action)
 {
   boolean element_clicked = ClickElement(action.lx, action.ly, action.button);
   boolean button_released = (action.button == MB_RELEASED);
 
-  GameActions_MM_Ext(action, warp_mode);
+  GameActions_MM_Ext(action);
 
   CheckSingleStepMode_MM(element_clicked, button_released);
 }
index c6d2d6dcfec6fa5c62aecaed377fa71343533ce9..294e414361f6b0078646c8d2181bbc754f6c2588 100644 (file)
@@ -25,7 +25,7 @@ void subMainGameLoop_Init(void)
   RedDiskReleasePhase = 0; // (re-)enable red disk release
 }
 
-void subMainGameLoop_Main(byte action, boolean warp_mode)
+void subMainGameLoop_Main(byte action)
 {
   // ---------------------------------------------------------------------------
   // --------------------- START OF GAME-BUSY LOOP -----------------------------
index 0dd629fbf5ac5a4e876753b8a4458f28587e50bf..7e7ba1e529d1b7bb1a0107b93fde6755a4025fc3 100644 (file)
@@ -14,7 +14,7 @@ extern int ExitToMenuFlag;
 extern int LeadOutCounter;
 
 void subMainGameLoop_Init(void);
-void subMainGameLoop_Main(byte, boolean);
+void subMainGameLoop_Main(byte);
 void subCalculateScreenScrollPos(void);
 
 #endif // MAINGAMELOOP_H
index 0ba8ac7d89fbe1eb8bccd01cddcdcc1f089547f2..cd1804dd1523bc7b8a58cd100def884f91333158 100644 (file)
@@ -172,7 +172,7 @@ void InitPrecedingPlayfieldMemory(void);
 void InitGfxBuffers_SP(void);
 
 void InitGameEngine_SP(void);
-void GameActions_SP(byte[MAX_PLAYERS], boolean);
+void GameActions_SP(byte[MAX_PLAYERS]);
 
 unsigned int InitEngineRandom_SP(int);
 
index 7eed1dd5d44bde6fb11c22abb8b14359d2517156..206ae571c3486a118b19d48d8300dbd85545b04d 100644 (file)
@@ -72,7 +72,7 @@ static void UpdateGameDoorValues_SP(void)
   game_sp.score = 0;           // (currently no score in Supaplex engine)
 }
 
-void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode)
+void GameActions_SP(byte action[MAX_PLAYERS])
 {
   byte single_player_action = action[0];
   int x, y;
@@ -80,7 +80,7 @@ void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode)
   UpdateEngineValues(mScrollX / TILEX, mScrollY / TILEY,
                     MurphyScreenXPos / TILEX, MurphyScreenYPos / TILEY);
 
-  subMainGameLoop_Main(single_player_action, warp_mode);
+  subMainGameLoop_Main(single_player_action);
 
   RedrawPlayfield_SP(FALSE);