X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_sp%2FMainGameLoop.c;fp=src%2Fgame_sp%2FMainGameLoop.c;h=2a6d25515b21287fff51ec4edb236d1f1f8e7525;hp=145c0436798e2487ce1167314f72a9cc6d8972c4;hb=41def9c1d8c6939b8754fdab43579272e49d4da4;hpb=4179dabc517f32c163c5d2c9aec2e15c57225d42 diff --git a/src/game_sp/MainGameLoop.c b/src/game_sp/MainGameLoop.c index 145c0436..2a6d2551 100644 --- a/src/game_sp/MainGameLoop.c +++ b/src/game_sp/MainGameLoop.c @@ -122,11 +122,17 @@ void subCalculateScreenScrollPos() // printf("::: ExplosionShake [%d]\n", FrameCounter); } - { - ax = SXSIZE / 2; - ay = SYSIZE / 2; - } +#if 1 + ax = (SCR_FIELDX / 2) * TILESIZE; + ay = (SCR_FIELDY / 2) * TILESIZE; + + ScreenScrollXPos = MurphyScreenXPos - ax; + ScreenScrollYPos = MurphyScreenYPos - ay; +#else + ax = SXSIZE / 2; + ay = SYSIZE / 2; ScreenScrollXPos = (MurphyScreenXPos + TILEX / 2) - ax; ScreenScrollYPos = (MurphyScreenYPos + TILEY / 2) - ay; +#endif }