Skip to content

Commit

Permalink
Update Ra2Mode::DetectDisguiseHack
Browse files Browse the repository at this point in the history
  • Loading branch information
Belonit committed Nov 28, 2023
1 parent 65bbf3f commit 50701f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Spawner/Ra2Mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ void Ra2Mode::Apply()
{ // Allows to detect disguise units with Psychic Sensor
Patch::Apply_CALL(0x45591E, GET_OFFSET(DetectDisguiseHack::Sensors_AddOfHouse));
Patch::Apply_CALL(0x4557B7, GET_OFFSET(DetectDisguiseHack::Sensors_RemOfHouse));

Patch::Apply_RAW(0x455980, { 0xC2, 0x04, 0x00 /* retn 4 */ }); // BuildingClass_DisguiseDetectorDeactivate
Patch::Apply_RAW(0x455A80, { 0xC2, 0x04, 0x00 /* retn 4 */ }); // BuildingClass_DisguiseDetectorActivate
}

{ // Use classic border style for UI items
Expand Down

0 comments on commit 50701f2

Please sign in to comment.