Added check to ScreenEditMenu to force the master player number to Player 1 because edit mode depends on that heavily.

This commit is contained in:
Kyzentun Keeslala
2015-08-29 18:48:44 -06:00
parent 410a33187a
commit 06c63364b1
+8
View File
@@ -38,6 +38,14 @@ void ScreenEditMenu::Init()
FOREACH_PlayerNumber( pn )
GAMESTATE->JoinPlayer( pn );
// Edit mode DOES NOT WORK if the master player is not player 1. The same
// is true of various parts of this poorly designed screen. -Kyz
if(GAMESTATE->GetMasterPlayerNumber() != PLAYER_1)
{
LOG->Warn("Master player number was not player 1, forcing it to player 1 so that edit mode will work. If playing in edit mode doesn't work, this might be related.");
GAMESTATE->SetMasterPlayerNumber(PLAYER_1);
}
ScreenWithMenuElements::Init();
m_Selector.SetName( "EditMenu" );