rnd-20091028-1-src
[rocksndiamonds.git] / src / game_sp / main.c
index 74902a0c897c50ac1e974309e017e3574ba9ac4f..be2cb29fcde4758aac875a5578c0c317076f663d 100644 (file)
@@ -3,15 +3,34 @@
 #include "global.h"
 
 
+struct GameInfo_SP game_sp_info;
+struct LevelInfo_SP native_sp_level;
+
 void InitGameEngine_SP()
 {
+  game_sp_info.LevelSolved = FALSE;
+  game_sp_info.GameOver = FALSE;
+
+#if 1
   menPlay_Click();
+#else
+  menPlayDemo_Click();
+#endif
 }
 
 void BlitScreenToBitmap_SP(Bitmap *target_bitmap)
 {
+  DDScrollBuffer_Blt_Ext(target_bitmap);
 }
 
 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();
 }