mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Improved code to check if militia options are available.
Start radio animation when giving orders to militia. FindClosestClimbPointAvailableToAI: don't check roaming range when searching climb spot for AI. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8939 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2697,7 +2697,7 @@ void CheckForChangingOrders(SOLDIERTYPE *pSoldier)
|
||||
// crank up ONGUARD to CLOSEPATROL, and CLOSEPATROL to FARPATROL
|
||||
pSoldier->aiData.bOrders++; // increase roaming range by 1 category
|
||||
}
|
||||
else if ( pSoldier->bTeam == MILITIA_TEAM && pSoldier->aiData.bOrders != SNIPER )
|
||||
else if ( pSoldier->bTeam == MILITIA_TEAM && pSoldier->aiData.bOrders != STATIONARY )
|
||||
{
|
||||
// go on alert!
|
||||
pSoldier->aiData.bOrders = SEEKENEMY;
|
||||
|
||||
Reference in New Issue
Block a user