Skip to content

Commit 916afee

Browse files
committed
Update Observers.Visibility.cpp
1 parent 4730aad commit 916afee

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/Misc/Observers.Visibility.cpp

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

168+
#ifndef IS_HARDEND_VER
169+
// Allow showing the select cursor on the object
170+
DEFINE_HOOK(0x700594, TechnoClass_WhatAction__AllowAllies, 0x5)
171+
{
172+
GET(TechnoClass*, pThis, ESI);
173+
GET(ObjectClass*, pObject, EDI);
174+
175+
return pThis->Owner->IsAlliedWith(pObject) ? 0x70059D : 0x7005E6;
176+
}
177+
#endif
178+
168179
// Show disguised units (Spy and Mirage) for observer
169180
#pragma region
170181
// Show spy for observer

0 commit comments

Comments
 (0)