chiark / gitweb /
atoms.lisp: Cancel the explosion animation when we restore a snapshot.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 22 Mar 2013 22:34:41 +0000 (22:34 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 22 Mar 2013 22:34:41 +0000 (22:34 +0000)
Otherwise we get terribly confused about who's supposed to be playing.

atoms.lisp

index 0855c84b7c2a8d0b5382dd29c63f381473f938c9..5dc0def11eb6624367af4c06de80cf1586334bca 100644 (file)
@@ -416,6 +416,7 @@ (defmethod restore ((game atom-game) (snapshot atom-game-snapshot))
          for snap-player in snap-players
          do (restore player snap-player))
     (setf (game-player-index game) (slot-value snapshot 'player-index))
+    (game-cancel-timeout game)
     (changed game :refresh)))
 
 ;;;--------------------------------------------------------------------------