X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_sp%2FMainGameLoop.c;h=145c0436798e2487ce1167314f72a9cc6d8972c4;hp=a82c8732f4846393e958441d10db97067b2a1528;hb=35b995abd3183999201d9581f7674de1475dc169;hpb=4591885cdbcfec145d1ac0510fed1519af1eea1d diff --git a/src/game_sp/MainGameLoop.c b/src/game_sp/MainGameLoop.c index a82c8732..145c0436 100644 --- a/src/game_sp/MainGameLoop.c +++ b/src/game_sp/MainGameLoop.c @@ -6,7 +6,7 @@ boolean bPlaying; -int LeadOutCounter, EnterRepeatCounter; +int LeadOutCounter; int ExitToMenuFlag; boolean AutoScrollFlag; @@ -98,7 +98,7 @@ locExitMainGameLoop: void subCalculateScreenScrollPos() { - int ax, Ay; + int ax, ay; #if 1 int jump_pos = TILEX / 2; @@ -124,9 +124,9 @@ void subCalculateScreenScrollPos() { ax = SXSIZE / 2; - Ay = SYSIZE / 2; + ay = SYSIZE / 2; } - ScreenScrollXPos = Stretch * (MurphyScreenXPos + TILEX / 2) - ax; - ScreenScrollYPos = Stretch * (MurphyScreenYPos + TILEY / 2) - Ay; + ScreenScrollXPos = (MurphyScreenXPos + TILEX / 2) - ax; + ScreenScrollYPos = (MurphyScreenYPos + TILEY / 2) - ay; }