From 916afee667986e098a0db39fdf995d12dde14329 Mon Sep 17 00:00:00 2001 From: Trsdy <914137150@qq.com> Date: Fri, 5 Apr 2024 20:54:46 +0800 Subject: [PATCH] Update Observers.Visibility.cpp --- src/Misc/Observers.Visibility.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Misc/Observers.Visibility.cpp b/src/Misc/Observers.Visibility.cpp index 619d2f5a..bc6397c9 100644 --- a/src/Misc/Observers.Visibility.cpp +++ b/src/Misc/Observers.Visibility.cpp @@ -165,6 +165,17 @@ DEFINE_HOOK(0x4AE62B, DisplayClass_HelpText_Cloak, 0x5) return CheckSensedByHouses; } +#ifndef IS_HARDEND_VER +// Allow showing the select cursor on the object +DEFINE_HOOK(0x700594, TechnoClass_WhatAction__AllowAllies, 0x5) +{ + GET(TechnoClass*, pThis, ESI); + GET(ObjectClass*, pObject, EDI); + + return pThis->Owner->IsAlliedWith(pObject) ? 0x70059D : 0x7005E6; +} +#endif + // Show disguised units (Spy and Mirage) for observer #pragma region // Show spy for observer