X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=4406288567f7453dd81a7da6b3fb7b253e922b9c;hb=9b360b977c0c1988c9a9bd63bb6d3f3991d1a650;hp=acb05d86dfd15d2cd5e0e7841d059d8ef695a307;hpb=6b702ffdb8025ef5538c2607131ecae2874730c4;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index acb05d86..44062885 100644 --- a/src/tape.c +++ b/src/tape.c @@ -711,13 +711,19 @@ static void TapeRewind() InitRND(tape.random_seed); } -void TapeStartRecording() +static void TapeSetRandomSeed(long random_seed) +{ + tape.random_seed = InitRND(random_seed); +} + +void TapeStartRecording(long random_seed) { if (!TAPE_IS_STOPPED(tape)) TapeStop(); TapeErase(); TapeRewind(); + TapeSetRandomSeed(random_seed); tape.recording = TRUE; @@ -732,7 +738,7 @@ void TapeStartRecording() static void TapeStartGameRecording() { - TapeStartRecording(); + TapeStartRecording(NEW_RANDOMIZE); #if defined(NETWORK_AVALIABLE) if (options.network) @@ -1297,6 +1303,12 @@ void AutoPlayTape() continue; } +#if 0 + /* ACTIVATE THIS FOR LOADING/TESTING OF LEVELS ONLY */ + printf("(only testing level)\n"); + continue; +#endif + LoadSolutionTape(level_nr); #if 1 if (tape.no_valid_file) @@ -1339,6 +1351,7 @@ void AutoPlayTape() printf(" %03d", i); } +#if 0 if (num_tape_missing > 0) { printf(", NO TAPE:"); @@ -1346,6 +1359,7 @@ void AutoPlayTape() if (tape_missing[i]) printf(" %03d", i); } +#endif printf("\n"); printf_line("=", 79);