raise same error when try to commit exchange out-of-turn is raised for

out-of-turn move attempt -- and don't exit exchange mode.
This commit is contained in:
Andy2 2011-09-12 18:33:33 -07:00
parent 68c85ec176
commit f8f06a7768

View file

@ -748,11 +748,7 @@ board_commitTurn( BoardCtxt* board )
if ( board->gameOver || turn < 0 ) {
/* do nothing */
} else if ( turn != board->selPlayer ) {
if ( board->selInfo->tradeInProgress ) {
result = exitTradeMode( board );
} else {
util_userError( board->util, ERR_NOT_YOUR_TURN );
}
util_userError( board->util, ERR_NOT_YOUR_TURN );
} else if ( 0 == model_getNumTilesTotal( board->model, turn ) ) {
/* game's over but still undoable so turn hasn't changed; do
nothing */