X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_sp%2FMainGameLoop.c;h=72d0e283a79f234860d7532ad584cf68b86cac48;hp=61d5ed1c663414e456599b12037af2eb2a1805ec;hb=64e7c54dce6ea8c063f04198c64c5057d751c928;hpb=3ff2e8a0b5c27b99a9920bdf5ed82bc41bf40181 diff --git a/src/game_sp/MainGameLoop.c b/src/game_sp/MainGameLoop.c index 61d5ed1c..72d0e283 100644 --- a/src/game_sp/MainGameLoop.c +++ b/src/game_sp/MainGameLoop.c @@ -16,7 +16,7 @@ boolean AutoScrollFlag; // Play a game/demo // ========================================================================== -void subMainGameLoop_Init() +void subMainGameLoop_Init(void) { // This was a bug in the original Supaplex: sometimes red disks could not // be released. This happened if Murphy was killed DURING a red disk release @@ -74,16 +74,16 @@ void subMainGameLoop_Main(byte action, boolean warp_mode) // lead-out done: exit now // ---------------------- END OF GAME-BUSY LOOP (including lead-out) --------- - /* if the game is not won when reaching this point, then it is lost */ + // if the game is not won when reaching this point, then it is lost if (!game_sp.LevelSolved) game_sp.GameOver = TRUE; } -void subCalculateScreenScrollPos() +void subCalculateScreenScrollPos(void) { int jump_pos = TILEX / 2; - /* handle wrap-around */ + // handle wrap-around if (MurphyScreenXPos < -jump_pos) { MurphyScreenXPos = FieldWidth * TILEX + MurphyScreenXPos;