X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=36748a7e4766a485734b38593d6e09dac47c1cd2;hb=73dfe4a920cabf20138c0ba49964a3c8c3f752d0;hp=51dcd8a2e0d85e4b47f12267cba9fef24ae118f2;hpb=2f5368f25e34c02cb5ff7a012aa96198442231cb;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 51dcd8a2..36748a7e 100644 --- a/src/tape.c +++ b/src/tape.c @@ -420,8 +420,13 @@ void TapeRecordAction(byte action[MAX_PLAYERS]) { int i; +#if 1 + if (!tape.recording) /* record action even when tape is paused! */ + return; +#else if (!tape.recording || tape.pausing) return; +#endif if (tape.counter >= MAX_TAPELEN - 1) { @@ -636,8 +641,13 @@ static void TapeStopIndexSearch() SetDrawDeactivationMask(REDRAW_NONE); audio.sound_deactivated = FALSE; - RedrawPlayfield(TRUE, 0,0,0,0); - DrawGameDoorValues(); +#if 1 + if (game_status == GAME_MODE_PLAYING) +#endif + { + RedrawPlayfield(TRUE, 0,0,0,0); + DrawGameDoorValues(); + } } static void TapeSingleStep() @@ -775,14 +785,18 @@ void AutoPlayTape() printf("Level %03d: ", level_nr); LoadLevel(level_nr); - if (level.no_level_file) + if (level.no_valid_file) { printf("(no level)\n"); continue; } LoadSolutionTape(level_nr); +#if 1 + if (tape.no_valid_file) +#else if (TAPE_IS_EMPTY(tape)) +#endif { printf("(no tape)\n"); continue;