Skip to content

Commit 63f72f4

Browse files
committed
Remove RA2Mode specialization for it
1 parent 916afee commit 63f72f4

3 files changed

Lines changed: 1 addition & 20 deletions

File tree

YRpp

Submodule YRpp updated 1 file

src/HardEndStuff/Ra2Mode.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -178,23 +178,6 @@ bool Ra2Mode::CheckSaveGameID(const char* saveGameName)
178178
return false;
179179
}
180180

181-
// Allow allies to repair on service depot
182-
DEFINE_HOOK(0x700594, TechnoClass_WhatAction__AllowAlliesRepair, 0x5)
183-
{
184-
if (!Ra2Mode::IsEnabled())
185-
return 0;
186-
187-
GET(TechnoClass*, pThis, ESI);
188-
GET(ObjectClass*, pObject, EDI);
189-
190-
auto const pBuilding = abstract_cast<BuildingClass* const>(pObject);
191-
auto const pBuildingOwner = pBuilding ? pBuilding->Owner : nullptr;
192-
193-
return (pBuildingOwner && pBuildingOwner->IsAlliedWith(pThis))
194-
? 0x70059D
195-
: 0x7005E6;
196-
}
197-
198181
// Allow to repair the BlackHawk Transport on service depot
199182
#pragma region AllowRepairFlyMZone
200183

src/Misc/Observers.Visibility.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ DEFINE_HOOK(0x4AE62B, DisplayClass_HelpText_Cloak, 0x5)
165165
return CheckSensedByHouses;
166166
}
167167

168-
#ifndef IS_HARDEND_VER
169168
// Allow showing the select cursor on the object
170169
DEFINE_HOOK(0x700594, TechnoClass_WhatAction__AllowAllies, 0x5)
171170
{
@@ -174,7 +173,6 @@ DEFINE_HOOK(0x700594, TechnoClass_WhatAction__AllowAllies, 0x5)
174173

175174
return pThis->Owner->IsAlliedWith(pObject) ? 0x70059D : 0x7005E6;
176175
}
177-
#endif
178176

179177
// Show disguised units (Spy and Mirage) for observer
180178
#pragma region

0 commit comments

Comments
 (0)