X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fmain.c;h=1308353d0ba96f29ea7713681d4861f2fc299ab7;hb=359536f46007d1b9148bed9c529056faa91b8aab;hp=a5ca525e4dd8a79ff062fcbfe4ccf287dadd0330;hpb=d45b35552f4ca1ada1266fb7e8b6968d878019a6;p=rocksndiamonds.git diff --git a/src/game_sp/main.c b/src/game_sp/main.c index a5ca525e..1308353d 100644 --- a/src/game_sp/main.c +++ b/src/game_sp/main.c @@ -26,7 +26,17 @@ void InitGameEngine_SP() game_sp.red_disk_count = 0; game_sp.score = 0; - menBorder.Checked = setup.sp_show_border_elements; + menBorder = setup.sp_show_border_elements; + + game_sp.scroll_xoffset = (EVEN(SCR_FIELDX) ? TILEX / 2 : 0); + game_sp.scroll_yoffset = (EVEN(SCR_FIELDY) ? TILEY / 2 : 0); + +#if 1 + if (native_sp_level.width <= SCR_FIELDX) + game_sp.scroll_xoffset = TILEX / 2; + if (native_sp_level.height <= SCR_FIELDY) + game_sp.scroll_yoffset = TILEY / 2; +#endif for (x = 0; x < SP_MAX_PLAYFIELD_WIDTH; x++) { @@ -76,6 +86,8 @@ void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode) if (!warp_mode) /* do not redraw values in warp mode */ DrawGameDoorValues_SP(); + CheckSingleStepMode_SP(PlayField16[MurphyPosIndex] != fiMurphy); + for (x = DisplayMinX; x <= DisplayMaxX; x++) for (y = DisplayMinY; y <= DisplayMaxY; y++) GfxFrame[x][y]++;