diff --git a/Generals/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp b/Generals/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp index 5e1d32956ec..07c3250ada6 100644 --- a/Generals/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp +++ b/Generals/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp @@ -2982,8 +2982,6 @@ void ControlBar::switchControlBarStage( ControlBarStages stage ) { if(stage < CONTROL_BAR_STAGE_DEFAULT || stage >= MAX_CONTROL_BAR_STAGES) return; - if (TheRecorder && TheRecorder->getMode() == RECORDERMODETYPE_PLAYBACK) - return; switch (stage) { case CONTROL_BAR_STAGE_DEFAULT: setDefaultControlBarConfig(); diff --git a/Generals/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp b/Generals/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp index a6faef03557..690116b3358 100644 --- a/Generals/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp +++ b/Generals/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp @@ -2991,20 +2991,17 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage } else { - if (!(TheRecorder && TheRecorder->getMode() == RECORDERMODETYPE_PLAYBACK)) + Bool hide = false; + if (TheWindowManager) { - Bool hide = false; - if (TheWindowManager) - { - Int id = (Int)TheNameKeyGenerator->nameToKey(AsciiString("ControlBar.wnd:ControlBarParent")); - GameWindow *window = TheWindowManager->winGetWindowFromId(NULL, id); - - if (window) - hide = !window->winIsHidden(); - } + Int id = (Int)TheNameKeyGenerator->nameToKey(AsciiString("ControlBar.wnd:ControlBarParent")); + GameWindow *window = TheWindowManager->winGetWindowFromId(NULL, id); - ToggleControlBar(); + if (window) + hide = !window->winIsHidden(); } + + ToggleControlBar(); } disp = DESTROY_MESSAGE; break; diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp index 663491e05cb..8874bcf72d6 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp @@ -3005,8 +3005,6 @@ void ControlBar::switchControlBarStage( ControlBarStages stage ) { if(stage < CONTROL_BAR_STAGE_DEFAULT || stage >= MAX_CONTROL_BAR_STAGES) return; - if (TheRecorder && TheRecorder->getMode() == RECORDERMODETYPE_PLAYBACK) - return; switch (stage) { case CONTROL_BAR_STAGE_DEFAULT: setDefaultControlBarConfig(); diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp index 149c1e31108..f235675b3ec 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp @@ -3178,20 +3178,17 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage } else { - if (!(TheRecorder && TheRecorder->getMode() == RECORDERMODETYPE_PLAYBACK)) + Bool hide = false; + if (TheWindowManager) { - Bool hide = false; - if (TheWindowManager) - { - Int id = (Int)TheNameKeyGenerator->nameToKey(AsciiString("ControlBar.wnd:ControlBarParent")); - GameWindow *window = TheWindowManager->winGetWindowFromId(NULL, id); - - if (window) - hide = !window->winIsHidden(); - } + Int id = (Int)TheNameKeyGenerator->nameToKey(AsciiString("ControlBar.wnd:ControlBarParent")); + GameWindow *window = TheWindowManager->winGetWindowFromId(NULL, id); - ToggleControlBar(); + if (window) + hide = !window->winIsHidden(); } + + ToggleControlBar(); } disp = DESTROY_MESSAGE; break;