mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
AI_ACTION_STOP_MEDIC: also check START_AID, START_AID_PRN animations to prevent AI endless clock when first aid has just started and AI decides to move somewhere.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8923 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -25925,6 +25925,14 @@ BOOLEAN SOLDIERTYPE::IsCowering(void)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOLEAN SOLDIERTYPE::IsGivingAid(void)
|
||||
{
|
||||
if (this->usAnimState == GIVING_AID || this->usAnimState == GIVING_AID_PRN || this->usAnimState == START_AID || this->usAnimState == START_AID_PRN)
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void SOLDIERTYPE::RetreatCounterStart(UINT16 usValue)
|
||||
{
|
||||
usSkillCounter[SOLDIER_COUNTER_RETREAT] = max(usValue, usSkillCounter[SOLDIER_COUNTER_RETREAT]);
|
||||
|
||||
Reference in New Issue
Block a user