atoms.lisp: A player about to make a move is active.
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)
Fixes a bug in `game-update-scores' which you should never actually see,
since a player shouldn't become ready if the game's already been won.
But this was exposed by another bug, so I might as well fix it.

atoms.lisp

index e1c331c..0855c84 100644 (file)
               (state (player-state player)))
          (cond ((and (zerop score) (eql state :playing))
                 (setf (player-state player) :losing))
-               ((member state '(:playing :starting))
+               ((member state '(:playing :starting :ready))
                 (incf remaining)
                 (setf found player)))))
       (changed game :scores :players players)