X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ffiles.c;h=ba39f3f3018cc5db14f7a6da0eb00db75bb3497a;hp=211a38d1f295572b094e2bbb094f6702b19514a0;hb=50c422d96b6da2c0412b6bd3763e9d1a029a6014;hpb=0918c3eb2f6219a8cc72aa85bd9c4889788dd474 diff --git a/src/files.c b/src/files.c index 211a38d1..ba39f3f3 100644 --- a/src/files.c +++ b/src/files.c @@ -443,6 +443,17 @@ void LoadTape(int level_nr) int file_version = FILE_VERSION_1_2; /* last version of tape files */ int chunk_length; + /* always start with reliable default values (empty tape) */ + TapeErase(); + + /* default values (also for pre-1.2 tapes) with only the first player */ + tape.player_participates[0] = TRUE; + for(i=1; i 0) - continue; - if (tape.player_participates[j]) tape.pos[i].action[j] = fgetc(file); }