Skip to content

Commit

Permalink
code update
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryone committed Jan 21, 2024
1 parent 66e66c7 commit d472f3c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Ext/Techno/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,8 @@ DEFINE_HOOK(0x6F534E, TechnoClass_DrawExtras_Insignia, 0x5)
GET(RectangleStruct*, pBounds, ESI);

if (pThis->VisualCharacter(false, nullptr) != VisualType::Hidden)
if(RulesExt::Global()->DrawInsigniaOnlyOnSelected.Get())
if(pThis->IsSelected)
TechnoExt::DrawInsignia(pThis, pLocation, pBounds);
else
return SkipGameCode;
if(RulesExt::Global()->DrawInsigniaOnlyOnSelected.Get() && !pThis->IsSelected)
return SkipGameCode;
else
TechnoExt::DrawInsignia(pThis, pLocation, pBounds);

Expand Down

0 comments on commit d472f3c

Please sign in to comment.