rnd-20091022-1-src
[rocksndiamonds.git] / src / game_sp / main.c
index 235d433454c80ec341a2b23aac4b0fbc98e0f6eb..a8d61e3ff7729f71309d57b5d319ae60afb71ec2 100644 (file)
@@ -3,9 +3,19 @@
 #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 0
   menPlay_Click();
+#else
+  menPlayDemo_Click();
+#endif
 }
 
 void BlitScreenToBitmap_SP(Bitmap *target_bitmap)
@@ -16,4 +26,7 @@ void BlitScreenToBitmap_SP(Bitmap *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);
 }