mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
in juggle, need to adjust rows after swapping to get passwd fields enabled
in sync with passwd checkbox.
This commit is contained in:
parent
4da329a482
commit
5ea2b3f8a2
1 changed files with 6 additions and 1 deletions
|
@ -254,13 +254,18 @@ newg_juggle( NewGameCtx* ngc )
|
|||
for ( player = 0; player < nPlayers; ++player ) {
|
||||
if ( player != pos[player] ) {
|
||||
LocalPlayer* lp = &tmpPlayers[player];
|
||||
loadPlayer( ngc, pos[player], lp );
|
||||
XP_U16 dest = pos[player];
|
||||
|
||||
loadPlayer( ngc, dest, lp );
|
||||
|
||||
if ( !!lp->name ) {
|
||||
XP_FREE( ngc->mpool, lp->name );
|
||||
}
|
||||
if ( !!lp->password ) {
|
||||
XP_FREE( ngc->mpool, lp->password );
|
||||
}
|
||||
|
||||
adjustOneRow( ngc, dest, XP_FALSE );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue