fixed bug which causes wrong score and time after solving level
authorHolger Schemel <info@artsoft.org>
Wed, 17 Sep 2025 17:36:05 +0000 (19:36 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 18 Sep 2025 13:15:23 +0000 (15:15 +0200)
commit40488781941944f2ff2a46d936fd5740a85a400d
tree55400797af5b36fcfc59cbad26ad1ec91dd32398
parent993cacde7672b2f07989d52314b307c634e970c7
fixed bug which causes wrong score and time after solving level

This is a terrible bug that only happens if the "frames" part of the
level time counter (counted in frames and seconds) overflows exactly
at the moment when the level is solved, resulting in a wrong score
and time (that is one second or 50 frames too low) and therefore in a
better ranking in the high score table.

As the game uses 50 frames per second, about 2 % of all existing score
entries are affected by this bug (which can be fixed for the scores on
the high score server, but not for the locally stored personal scores).
src/game.c