fix obscure selection glitch

This commit is contained in:
Glenn Maynard
2004-01-21 02:11:23 +00:00
parent eccaf9d775
commit 1d87a82751
+5 -3
View File
@@ -445,13 +445,17 @@ bool ScreenSelectMaster::ChangeSelection( PlayerNumber pn, int iNewChoice )
for( int p=0; p<NUM_PLAYERS; p++ )
{
/* Set the new m_iChoice even for disabled players, since a player might
* join on a SHARED_PREVIEW_AND_CURSOR after the cursor has been moved. */
const int iOldChoice = m_iChoice[p];
m_iChoice[p] = iNewChoice;
if( !GAMESTATE->IsHumanPlayer(p) )
continue; // skip
if( !bMoveAll && p!=pn )
continue; // skip
const int iOldChoice = m_iChoice[p];
if( SHARED_PREVIEW_AND_CURSOR )
{
for( int i=0; i<NUM_PREVIEW_PARTS; i++ )
@@ -479,8 +483,6 @@ bool ScreenSelectMaster::ChangeSelection( PlayerNumber pn, int iNewChoice )
}
}
m_iChoice[p] = iNewChoice;
if( SHARED_PREVIEW_AND_CURSOR )
{
for( int i=0; i<NUM_CURSOR_PARTS; i++ )