Skip to content

Commit f6b8253

Browse files
authored
tweak(gui): No longer disable the idle worker button when the game input is disabled (#1566)
1 parent 244935b commit f6b8253

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5557,10 +5557,10 @@ void InGameUI::updateIdleWorker( void )
55575557
{
55585558
Int idleCount = getIdleWorkerCount();
55595559

5560-
if(idleCount > 0 && m_currentIdleWorkerDisplay != idleCount && getInputEnabled())
5560+
if(idleCount > 0 && m_currentIdleWorkerDisplay != idleCount)
55615561
showIdleWorkerLayout();
55625562

5563-
if((idleCount <= 0 && m_idleWorkerWin) || !getInputEnabled())
5563+
if(idleCount <= 0 && m_idleWorkerWin)
55645564
hideIdleWorkerLayout();
55655565
}
55665566

GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5729,10 +5729,10 @@ void InGameUI::updateIdleWorker( void )
57295729
{
57305730
Int idleCount = getIdleWorkerCount();
57315731

5732-
if(idleCount > 0 && m_currentIdleWorkerDisplay != idleCount && getInputEnabled())
5732+
if(idleCount > 0 && m_currentIdleWorkerDisplay != idleCount)
57335733
showIdleWorkerLayout();
57345734

5735-
if((idleCount <= 0 && m_idleWorkerWin) || !getInputEnabled())
5735+
if(idleCount <= 0 && m_idleWorkerWin)
57365736
hideIdleWorkerLayout();
57375737
}
57385738

0 commit comments

Comments
 (0)