]> git.pond.sub.org Git - empserver/commit
(getplayer): There may be multiple players for the same country in the
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 2 Oct 2005 16:21:41 +0000 (16:21 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 2 Oct 2005 16:21:41 +0000 (16:21 +0000)
commitf6a8a148316a7fea2debd655638b24a0caf87a1a
treeaf25eae5fca908cbf666c7ce22835299ce7de0b8
parent687cacd8872b73c6fdef4795dcf2b775f78c469f
(getplayer): There may be multiple players for the same country in the
list of players, but at most one in state PS_PLAYING.  getplayer()
used to get the one first in the list.  However, its callers need the
one in state PS_PLAYING.  In particular, typed_wu() notifies the
player obtained from getplayer().  If the player in state PS_PLAYING
isn't first, say because another one is trying to log in, the
notification gets lost.  Fix by making getplayer() return the player
in state PS_PLAYING.
src/lib/player/accept.c