From ef2101f4f836bb679bc8588b8c880c0b9a4bdb0c Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 2 Jul 2006 00:34:41 +0000 Subject: [PATCH] in juggle, need to adjust rows after swapping to get passwd fields enabled in sync with passwd checkbox. --- common/nwgamest.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/nwgamest.c b/common/nwgamest.c index de917ef4e..10c997f72 100644 --- a/common/nwgamest.c +++ b/common/nwgamest.c @@ -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 ); } } }