Always call LoadAllCommands explicitly.
The hack to LoadAllCommands when playing a command was leading to weird interactions: If a theme element contained an OnCommand, it would cause the rest of the commands defined in metrics to not be loaded.
This commit is contained in:
@@ -44,7 +44,7 @@ void ScreenSelectMode::Init()
|
||||
{
|
||||
m_iCurrentChar[pn]= -1; // minus 1 indicates no character.
|
||||
m_CurChar[pn].SetName(ssprintf("CharacterIconP%d",pn+1));
|
||||
SET_XY( m_CurChar[pn] );
|
||||
LOAD_ALL_COMMANDS_AND_SET_XY( m_CurChar[pn] );
|
||||
}
|
||||
m_bSelected = false;
|
||||
m_ChoiceListFrame.Load( THEME->GetPathG("ScreenSelectMode","list frame"));
|
||||
|
||||
Reference in New Issue
Block a user