From baae135fbd0b986c7453adb490baed61468af238 Mon Sep 17 00:00:00 2001 From: Skyaero <21192585+Skyaero42@users.noreply.github.com> Date: Sat, 15 Nov 2025 22:05:44 +0100 Subject: [PATCH] tweak: Add RETAIL_COMPATIBLE_BUG to Black Lotus cash fix - Follow up on #1601 With #1601 removing the hardcoded cash gain when Black Lotus performs a successfull cash hack, the Super Lotus now gains 1.500 instead of 1.000 credits per INI configuration. To keep in line with expectations, this fix also needs to be behind RETAIL_COMPATIBLE_BUG guards. --- .../Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp | 2 +- .../Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Generals/Code/GameEngine/Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp b/Generals/Code/GameEngine/Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp index 012b28d2cb..39d4be44ea 100644 --- a/Generals/Code/GameEngine/Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp +++ b/Generals/Code/GameEngine/Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp @@ -1341,7 +1341,7 @@ void SpecialAbilityUpdate::triggerAbilityEffect() if( targetMoney && objectMoney ) { UnsignedInt cash = targetMoney->countMoney(); -#if RETAIL_COMPATIBLE_CRC +#if RETAIL_COMPATIBLE_CRC || RETAIL_COMPATIBLE_BUG UnsignedInt desiredAmount = 1000; #else UnsignedInt desiredAmount = data->m_effectValue; diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp index e50b3f754e..d0e5403716 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/SpecialAbilityUpdate.cpp @@ -1487,7 +1487,7 @@ void SpecialAbilityUpdate::triggerAbilityEffect() if( targetMoney && objectMoney ) { UnsignedInt cash = targetMoney->countMoney(); -#if RETAIL_COMPATIBLE_CRC +#if RETAIL_COMPATIBLE_CRC || RETAIL_COMPATIBLE_BUG UnsignedInt desiredAmount = 1000; #else UnsignedInt desiredAmount = data->m_effectValue;