X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=85fd29030b61446c3af148f5fd48df9681e2313b;hb=9073d88279c0b9c5be103a6bb4d5c608ab0d90cc;hp=69ed9f938039936889111782f35b9a8e722d4ab8;hpb=a6f92ff31331edb70bdd380518fe217a78788f7e;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 69ed9f93..85fd2903 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(); } @@ -646,7 +646,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 +656,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 +943,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)