On client, when game ends locally set turn to -1 (nobody) so that

display won't be confusing during the interval before the server
receives the move and responds with a game-over message.
This commit is contained in:
Eric House 2015-06-10 07:35:39 -07:00
parent f0c3c11dc8
commit 90dbd52bfd

View file

@ -1927,6 +1927,7 @@ nextTurn( ServerCtxt* server, XP_S16 nxtTurn )
} else { } else {
XP_LOGF( "%s: Doing nothing; waiting for server to end game", XP_LOGF( "%s: Doing nothing; waiting for server to end game",
__func__ ); __func__ );
setTurn( server, -1 );
/* I'm the client. Do ++nothing++. */ /* I'm the client. Do ++nothing++. */
} }
} }