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
This commit is contained in:
Martin Palko 2020-06-07 11:19:57 -04:00
parent 39eb68210c
commit 7095efe1ad

View file

@ -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);