fix assertion failure that happened when I changed whether remote

scores were shown mid-game.  If the value's not as expected just don't
show the score.
This commit is contained in:
Andy2 2011-02-18 17:43:01 -08:00
parent da6d7da350
commit d2fda267e5

View file

@ -809,6 +809,7 @@ postponeRobotMove( ServerCtxt* server )
static void
showPrevScore( ServerCtxt* server )
{
if ( server->nv.showRobotScores ) { /* this can be changed between turns */
XW_UtilCtxt* util = server->vol.util;
XWStreamCtxt* stream;
const XP_UCHAR* str;
@ -818,8 +819,6 @@ showPrevScore( ServerCtxt* server )
XP_U16 strCode;
LocalPlayer* lp;
XP_ASSERT( server->nv.showRobotScores );
prevTurn = (server->nv.currentTurn + nPlayers - 1) % nPlayers;
lp = &gi->players[prevTurn];
@ -850,7 +849,7 @@ showPrevScore( ServerCtxt* server )
(void)util_userQuery( util, QUERY_ROBOT_MOVE, stream );
stream_destroy( stream );
}
SETSTATE( server, server->vol.stateAfterShow );
} /* showPrevScore */