Skip to content

Commit

Permalink
only allow allies to select here
Browse files Browse the repository at this point in the history
  • Loading branch information
chaserli committed Mar 10, 2024
1 parent 9b2118b commit 16aab94
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Misc/Observers.Visibility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,13 @@ DEFINE_HOOK(0x4AE62B, DisplayClass_HelpText_Cloak, 0x5)
}

// Allow showing the select cursor on the object
DEFINE_JUMP(LJMP, 0x70056C, 0x70059D);
DEFINE_HOOK(0x700594, TechnoClass_WhatAction__AllowAllies, 0x5)
{
GET(TechnoClass*, pThis, ESI);
GET(ObjectClass*, pObject, EDI);

return pObject->GetOwningHouse()->IsAlliedWith(pThis->Owner) ? 0x70059D : 0x7005E6;
}

// Show disguised units (Spy and Mirage) for observer
#pragma region
Expand Down

0 comments on commit 16aab94

Please sign in to comment.