chiark / gitweb /
End victory flash on new game and restart game.
authorJonas Kölker <jonaskoelker@yahoo.com>
Thu, 8 Oct 2015 09:00:29 +0000 (11:00 +0200)
committerSimon Tatham <anakin@pobox.com>
Wed, 14 Oct 2015 19:29:32 +0000 (20:29 +0100)
commit988b16a3191282a5407f6cee88d62aaae853be3d
tree5f417276cbd89238485db5f5aec5fe605a0942de
parentbf81e9c1fac2dc891d15d107a56db0c9b7482c20
End victory flash on new game and restart game.

Net provides the best demonstration of why. Complete a game of net,
then press N while the victory flash is playing: then the victory
flash keeps playing on the new game board. (Tip: save a game which
but for a redo is completed, then you can reproduce this repeatedly
without having to complete a new game each time.)

The flash timer reset code is placed together with the animation
timer reset code, because the two are conceptually related. Note
that midend_restart_game resets animations via midend_finish_move.
midend.c