mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
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:
parent
68c85ec176
commit
f8f06a7768
1 changed files with 1 additions and 5 deletions
|
@ -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 );
|
||||
}
|
||||
} else if ( 0 == model_getNumTilesTotal( board->model, turn ) ) {
|
||||
/* game's over but still undoable so turn hasn't changed; do
|
||||
nothing */
|
||||
|
|
Loading…
Reference in a new issue