X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fmain.c;h=bd24db8b62810a1bc20f1ee720b92263c1ba0988;hb=ed873d89bc59f4e641134f9019ce216234b9f38f;hp=be2cb29fcde4758aac875a5578c0c317076f663d;hpb=07d1e990ebdd1e5eca3d310f8e9b9a3a8411a4dd;p=rocksndiamonds.git diff --git a/src/game_sp/main.c b/src/game_sp/main.c index be2cb29f..bd24db8b 100644 --- a/src/game_sp/main.c +++ b/src/game_sp/main.c @@ -11,6 +11,8 @@ void InitGameEngine_SP() game_sp_info.LevelSolved = FALSE; game_sp_info.GameOver = FALSE; + InitScrollPlayfield(); + #if 1 menPlay_Click(); #else @@ -18,19 +20,27 @@ void InitGameEngine_SP() #endif } +#if 0 void BlitScreenToBitmap_SP(Bitmap *target_bitmap) { 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) { byte single_player_action = action[0]; subMainGameLoop_Main(single_player_action, warp_mode); -} -void RedrawPlayfield_SP(boolean force_redraw) -{ - subDisplayLevel(); + RedrawPlayfield_SP(FALSE); }