in juggle, need to adjust rows after swapping to get passwd fields enabled

in sync with passwd checkbox.
This commit is contained in:
ehouse 2006-07-02 00:34:41 +00:00
parent 4da329a482
commit 5ea2b3f8a2

View file

@ -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 );
}
}
}