Remove numSidesJoinedToPlay.
This commit is contained in:
@@ -17,7 +17,6 @@ void ModeChoice::Init()
|
|||||||
dc = DIFFICULTY_INVALID;
|
dc = DIFFICULTY_INVALID;
|
||||||
sAnnouncer = "";
|
sAnnouncer = "";
|
||||||
strcpy( name, "" );
|
strcpy( name, "" );
|
||||||
numSidesJoinedToPlay = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ModeChoice::DescribesCurrentMode() const
|
bool ModeChoice::DescribesCurrentMode() const
|
||||||
@@ -113,23 +112,6 @@ bool ModeChoice::FromString( CString sChoice, bool bIgnoreUnknown )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( this->style != STYLE_INVALID )
|
|
||||||
{
|
|
||||||
const StyleDef* pStyleDef = GAMEMAN->GetStyleDefForStyle(this->style);
|
|
||||||
switch( pStyleDef->m_StyleType )
|
|
||||||
{
|
|
||||||
case StyleDef::ONE_PLAYER_ONE_CREDIT:
|
|
||||||
this->numSidesJoinedToPlay = 1;
|
|
||||||
break;
|
|
||||||
case StyleDef::TWO_PLAYERS_TWO_CREDITS:
|
|
||||||
case StyleDef::ONE_PLAYER_TWO_CREDITS:
|
|
||||||
this->numSidesJoinedToPlay = 2;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ASSERT(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return !bChoiceIsInvalid;
|
return !bChoiceIsInvalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ struct ModeChoice // used in SelectMode
|
|||||||
CString sAnnouncer;
|
CString sAnnouncer;
|
||||||
|
|
||||||
char name[64];
|
char name[64];
|
||||||
int numSidesJoinedToPlay;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user