From 7095efe1ad77d517b52c305cf6a7fbcfed704687 Mon Sep 17 00:00:00 2001 From: Martin Palko Date: Sun, 7 Jun 2020 11:19:57 -0400 Subject: [PATCH] Fixed facing when boxing - Target was only being set after call to 'Do_Action(DO_ON_GUARD...' which caused facing to be calculated incorrectly, as the target was invalid at the time of the call. 0731dc --- TIBERIANDAWN/INFANTRY.CPP | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TIBERIANDAWN/INFANTRY.CPP b/TIBERIANDAWN/INFANTRY.CPP index 962dc9c..44f46a0 100644 --- a/TIBERIANDAWN/INFANTRY.CPP +++ b/TIBERIANDAWN/INFANTRY.CPP @@ -2776,8 +2776,8 @@ RadioMessageType InfantryClass::Receive_Message(RadioClass * from, RadioMessageT if (IsBoxing) break; #endif if (Contact_With_Whom() == from) { - Do_Action(DO_ON_GUARD, true); Assign_Target(Contact_With_Whom()->As_Target()); + Do_Action(DO_ON_GUARD, true); return(RADIO_ROGER); } return(RADIO_NEGATIVE);