File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update
Generals/Code/GameEngine/Source/GameLogic/Object/Update Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,17 @@ OCLUpdate::~OCLUpdate( void )
82
82
// -------------------------------------------------------------------------------------------------
83
83
UpdateSleepTime OCLUpdate::update ( void )
84
84
{
85
+ #if !RETAIL_COMPATIBLE_CRC
86
+ // TheSuperHackers @bugfix dizzyj/Caball009/Mauller 14/07/2025 prevent triggering supply drop when subdued while under construction
87
+ // When the construction is finished, we allow the timer to be initialized and then start shifting the timer while subdued
88
+ if ( m_timerStartedFrame > 0 && getObject ()->isDisabled () )
89
+ {
90
+ m_nextCreationFrame++;
91
+ m_timerStartedFrame++;
92
+ return UPDATE_SLEEP_NONE;
93
+ }
94
+ #endif
95
+
85
96
// / @todo srj use SLEEPY_UPDATE here
86
97
if ( shouldCreate () )
87
98
{
Original file line number Diff line number Diff line change @@ -123,11 +123,22 @@ OCLUpdate::~OCLUpdate( void )
123
123
// -------------------------------------------------------------------------------------------------
124
124
UpdateSleepTime OCLUpdate::update ( void )
125
125
{
126
+ #if RETAIL_COMPATIBLE_CRC
126
127
if ( getObject ()->isDisabled () )
127
128
{
128
129
m_nextCreationFrame++;
129
130
return UPDATE_SLEEP_NONE;
130
131
}
132
+ #else
133
+ // TheSuperHackers @bugfix dizzyj/Caball009/Mauller 14/07/2025 prevent triggering supply drop when subdued while under construction
134
+ // When the construction is finished, we allow the timer to be initialized and then start shifting the timer while subdued
135
+ if ( m_timerStartedFrame > 0 && getObject ()->isDisabled () )
136
+ {
137
+ m_nextCreationFrame++;
138
+ m_timerStartedFrame++;
139
+ return UPDATE_SLEEP_NONE;
140
+ }
141
+ #endif
131
142
132
143
const OCLUpdateModuleData *data = getOCLUpdateModuleData ();
133
144
You can’t perform that action at this time.
0 commit comments