}
else if (y == 5)
{
+#if 1
+ StartGameActions(options.network, setup.autorecord, NEW_RANDOMIZE);
+#else
if (setup.autorecord)
TapeStartRecording();
StopAnimation();
InitGame();
}
+#endif
}
else if (y == 6)
{
}
else
{
+ if (game.restart_level)
+ StartGameActions(options.network, setup.autorecord, NEW_RANDOMIZE);
+
if (local_player->LevelSolved)
GameWon();
}
}
+void StartGameActions(boolean init_network_game, boolean record_tape,
+ long random_seed)
+{
+ if (record_tape)
+ TapeStartRecording(random_seed);
+
+#if defined(NETWORK_AVALIABLE)
+ if (init_network_game)
+ {
+ SendToServer_StartPlaying();
+
+ return;
+ }
+#endif
+
+ StopAnimation();
+
+ game_status = GAME_MODE_PLAYING;
+
+ InitRND(random_seed);
+
+ InitGame();
+}
+
/* ---------- new screen button stuff -------------------------------------- */
/* graphic position and size values for buttons and scrollbars */