-
- // EP set level success byte: game, not demo
- WasDemoFlag = 0;
- EP_GameDemoVar0DAA = 1; // game
- }
-
- // RestartGameLoop:
- // If RecordDemoFlag = 1 Then
- // RecordDemoFlag = 0 ' clear Demo Recording flag
- // Call subDisplayPlayingTime ' playing time on screen
- // ' Record key still pressed?' >= (Ctrl-)F1 and <= (Ctrl-)F10
- // While &H3B <= KeyScanCode7 And KeyScanCode7 <= &H44
- // ' yes -> wait until released
- // ' should we DoEvents here???? ... depends on how ... but yes!
- // ' ...or we can rather poll the keyboardstate inside this loop???
- // Wend
- // Call subInitGameConditions ' Init game conditions (vars)
- // If MusicOnFlag = 0 Then Call subMusicInit
- // WasDemoFlag = 0 ' no demo anymore
- // EP_GameDemoVar0DAA = 1 ' force game
- // End If
-
- // This was a bug in the original Supaplex: sometimes red disks could not
- // be released. This happened If Murphy was killed DURING a red disk release
- // and the next try started.
-
- RedDiskReleasePhase = 0; // (re-)enable red disk release
- UpdatedFlag = 0;
- GameLoopRunning = 1;
- LevelStatus = 0;
-
- // ----------------------------------------------------------------------------
- // --------------------- START OF GAME-BUSY LOOP ------------------------------
- // ----------------------------------------------------------------------------
-
-locRepeatMainGameLoop: // start repeating game loop
-
- // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- // FS synchronization
- while (PauseMode != 0)
- {
- DoEvents();