From 06c63364b1de1086e629ed1f9be5ba8a8a61e8e2 Mon Sep 17 00:00:00 2001 From: Kyzentun Keeslala Date: Sat, 29 Aug 2015 18:48:44 -0600 Subject: [PATCH] Added check to ScreenEditMenu to force the master player number to Player 1 because edit mode depends on that heavily. --- src/ScreenEditMenu.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ScreenEditMenu.cpp b/src/ScreenEditMenu.cpp index 31faaa60ee..548329a9b8 100644 --- a/src/ScreenEditMenu.cpp +++ b/src/ScreenEditMenu.cpp @@ -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" );