X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fmain.c;h=d63d32a0f2966b9c6d1f18ddfa728c604ef51ecf;hb=a312d80612bb9a448cdc1abbde690b296fa92b17;hp=9f343318407a45100de8d4673dd1ed83b385143f;hpb=83a31e12a79ab21deddbbb7533998a1a54a989dd;p=rocksndiamonds.git diff --git a/src/game_sp/main.c b/src/game_sp/main.c index 9f343318..d63d32a0 100644 --- a/src/game_sp/main.c +++ b/src/game_sp/main.c @@ -11,17 +11,31 @@ void InitGameEngine_SP() game_sp_info.LevelSolved = FALSE; game_sp_info.GameOver = FALSE; -#if 0 + menBorder.Checked = setup.sp_show_border_elements; + + InitScrollPlayfield(); + +#if 1 menPlay_Click(); #else menPlayDemo_Click(); #endif } +#if 0 void BlitScreenToBitmap_SP(Bitmap *target_bitmap) { - BlitBitmap(screenBitmap, target_bitmap, 15 * 32, 7 * 32, - SCR_FIELDX * TILEX, SCR_FIELDY * TILEY, SX, SY); + DDScrollBuffer_Blt_Ext(target_bitmap); +} +#endif + +void RedrawPlayfield_SP(boolean force_redraw) +{ + // subDisplayLevel(); + + UpdatePlayfield(); + + BackToFront_SP(); } void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode) @@ -29,9 +43,6 @@ void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode) byte single_player_action = action[0]; subMainGameLoop_Main(single_player_action, warp_mode); -} -void RedrawPlayfield_SP(boolean force_redraw) -{ - subDisplayLevel(); + RedrawPlayfield_SP(FALSE); }