mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
clear pending move before applying phonies rejection
If slow network traffic has given a guest time to move tiles to the board while the host decides its last move must be rejected, those tiles must be removed before the rejected turn can be undone.
This commit is contained in:
parent
9d04b97ec8
commit
0dc39b5d85
1 changed files with 2 additions and 0 deletions
|
@ -902,6 +902,8 @@ model_rejectPreviousMove( ModelCtxt* model, PoolContext* pool, XP_U16* turn )
|
|||
stack_popEntry( stack, &entry );
|
||||
XP_ASSERT( entry.moveType == MOVE_TYPE );
|
||||
|
||||
model_resetCurrentTurn( model, entry.playerNum );
|
||||
|
||||
replaceNewTiles( model, pool, entry.playerNum, &entry.u.move.newTiles );
|
||||
XP_ASSERT( !model->vol.gi->inDuplicateMode );
|
||||
undoFromMove( model, entry.playerNum, blankTile, &entry.u.move );
|
||||
|
|
Loading…
Add table
Reference in a new issue