X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=40a5126b160dbcff66f561b2c847e1bc91f81fa6;hb=f857fec3082c785b0dd271b6ad1b7642a2ed4e65;hp=69ed9f938039936889111782f35b9a8e722d4ab8;hpb=a6f92ff31331edb70bdd380518fe217a78788f7e;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 69ed9f93..40a5126b 100644 --- a/src/tape.c +++ b/src/tape.c @@ -366,7 +366,7 @@ static void TapeStartGameRecording() else #endif { - game_status = PLAYING; + game_status = GAME_MODE_PLAYING; StopAnimation(); InitGame(); } @@ -511,7 +511,7 @@ static void TapeStartGamePlaying() { TapeStartPlaying(); - game_status = PLAYING; + game_status = GAME_MODE_PLAYING; StopAnimation(); InitGame(); } @@ -591,8 +591,10 @@ void TapeStop() DrawVideoDisplay(VIDEO_STATE_TIME_ON, tape.length_seconds); } +#if 0 if (tape.auto_play) AutoPlayTape(); /* continue automatically playing next tape */ +#endif } unsigned int GetTapeLength() @@ -646,7 +648,7 @@ static void TapeSingleStep() void TapeQuickSave() { - if (game_status == PLAYING) + if (game_status == GAME_MODE_PLAYING) { if (tape.recording) TapeHaltRecording(); /* prepare tape for saving on-the-fly */ @@ -656,13 +658,13 @@ void TapeQuickSave() else SaveTape(tape.level_nr); } - else if (game_status == MAINMENU) + else if (game_status == GAME_MODE_MAIN) Request("No game that can be saved !", REQ_CONFIRM); } void TapeQuickLoad() { - if (game_status == PLAYING || game_status == MAINMENU) + if (game_status == GAME_MODE_PLAYING || game_status == GAME_MODE_MAIN) { TapeStop(); TapeErase(); @@ -943,7 +945,7 @@ static void HandleTapeButtons(struct GadgetInfo *gi) { int id = gi->custom_id; - if (game_status != MAINMENU && game_status != PLAYING) + if (game_status != GAME_MODE_MAIN && game_status != GAME_MODE_PLAYING) return; switch (id)