mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +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:
@@ -2632,7 +2632,7 @@ INT8 ExecuteAction(SOLDIERTYPE *pSoldier)
|
||||
if (pSoldier->stats.bLife >= OKLIFE &&
|
||||
pSoldier->bBreath > 0 &&
|
||||
!pSoldier->bCollapsed &&
|
||||
(pSoldier->usAnimState == GIVING_AID || pSoldier->usAnimState == GIVING_AID_PRN))
|
||||
pSoldier->IsGivingAid())
|
||||
{
|
||||
if (gAnimControl[pSoldier->usAnimState].ubEndHeight == ANIM_PRONE)
|
||||
pSoldier->ChangeSoldierState(END_AID_PRN, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user