X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=29886a5c7346da27c25a3b3b5b538d0f8e982a5d;hb=5a53ae0c;hp=4894f1137bc9fb54fec3b5e7b81c03bcfae4fc56;hpb=311daa0f9ad23b7a9b53b979226a4a51942c084f;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 4894f113..29886a5c 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1145,6 +1145,22 @@ boolean PlaySolutionTape(void) return TRUE; } +void FixTape_ForceSinglePlayer(void) +{ + int i; + + /* fix single-player tapes that contain player input for more than one + player (due to a bug in 3.3.1.2 and earlier versions), which results + in playing levels with more than one player in multi-player mode, + even though the tape was originally recorded in single-player mode */ + + // remove player input actions for all players but the first one + for (i = 1; i < MAX_PLAYERS; i++) + tape.player_participates[i] = FALSE; + + tape.changed = TRUE; +} + // ---------------------------------------------------------------------------- // tape autoplay functions