Skip to content

Commit 153d7d8

Browse files
committed
in an archive of multiple hundreds of FC/TFMX mods found a subtly corrupted file that plays at insanely slow speed by accident, so let's protect song-end detection to spend too long then
1 parent 86ee5d2 commit 153d7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ bool FC::init(void *data, udword length, int songNumber) {
268268
restart();
269269
do {
270270
duration += run();
271-
} while ( !songEnd );
271+
} while ( !songEnd && (duration<1000*60*59));
272272
loopMode = loopModeBak;
273273

274274
analyze->dump();

0 commit comments

Comments
 (0)