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:
parent
39eb68210c
commit
7095efe1ad
1 changed files with 1 additions and 1 deletions
|
@ -2776,8 +2776,8 @@ RadioMessageType InfantryClass::Receive_Message(RadioClass * from, RadioMessageT
|
||||||
if (IsBoxing) break;
|
if (IsBoxing) break;
|
||||||
#endif
|
#endif
|
||||||
if (Contact_With_Whom() == from) {
|
if (Contact_With_Whom() == from) {
|
||||||
Do_Action(DO_ON_GUARD, true);
|
|
||||||
Assign_Target(Contact_With_Whom()->As_Target());
|
Assign_Target(Contact_With_Whom()->As_Target());
|
||||||
|
Do_Action(DO_ON_GUARD, true);
|
||||||
return(RADIO_ROGER);
|
return(RADIO_ROGER);
|
||||||
}
|
}
|
||||||
return(RADIO_NEGATIVE);
|
return(RADIO_NEGATIVE);
|
||||||
|
|
Reference in a new issue