Skip to content

Commit

Permalink
Update Observers.Visibility.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chaserli committed Apr 5, 2024
1 parent 4730aad commit 916afee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Misc/Observers.Visibility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 916afee

Please sign in to comment.