File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower
Generals/Code/GameEngine/Source/GameLogic/Object/SpecialPower Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,17 @@ SpecialPowerModule::~SpecialPowerModule()
166166// -------------------------------------------------------------------------------------------------
167167void SpecialPowerModule::resolveSpecialPower ( void )
168168{
169+ #if !RETAIL_COMPATIBLE_CRC
170+ // TheSuperHackers @info some building based special powers are immediately available
171+ // This means we need to set their available frame to the current frame to make them usable
172+ // The check for a public timer excludes super weapons from the selection criteria
173+ if (getSpecialPowerModuleData ()->m_specialPowerTemplate ->hasPublicTimer () == FALSE &&
174+ getObject ()->isKindOf (KINDOF_STRUCTURE) )
175+ {
176+ m_availableOnFrame = TheGameLogic->getFrame ();
177+ }
178+ #endif
179+
169180 /*
170181
171182 // if we're pre-built, and not from a command center, and a building register us with the UI
Original file line number Diff line number Diff line change @@ -178,6 +178,17 @@ void SpecialPowerModule::setReadyFrame( UnsignedInt frame )
178178// -------------------------------------------------------------------------------------------------
179179void SpecialPowerModule::resolveSpecialPower ( void )
180180{
181+ #if !RETAIL_COMPATIBLE_CRC
182+ // TheSuperHackers @info some building based special powers are immediately available
183+ // This means we need to set their available frame to the current frame to make them usable
184+ // The check for a public timer excludes super weapons from the selection criteria
185+ if (getSpecialPowerModuleData ()->m_specialPowerTemplate ->hasPublicTimer () == FALSE &&
186+ getObject ()->isKindOf (KINDOF_STRUCTURE) )
187+ {
188+ m_availableOnFrame = TheGameLogic->getFrame ();
189+ }
190+ #endif
191+
181192 /*
182193
183194 // if we're pre-built, and not from a command center, and a building register us with the UI
You can’t perform that action at this time.
0 commit comments