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:
+11
-2
@@ -1818,7 +1818,16 @@ INT32 ClosestUnDisguisedPC( SOLDIERTYPE *pSoldier, INT32 * psDistance )
|
||||
|
||||
INT32 FindClosestClimbPointAvailableToAI( SOLDIERTYPE * pSoldier, INT32 sStartGridNo, INT32 sDesiredGridNo, BOOLEAN fClimbUp )
|
||||
{
|
||||
INT32 sGridNo;
|
||||
// sevenfm: safety check
|
||||
if (!pSoldier)
|
||||
{
|
||||
return NOWHERE;
|
||||
}
|
||||
|
||||
// sevenfm: don't check roaming range
|
||||
return FindClosestClimbPoint(pSoldier, sStartGridNo, sDesiredGridNo, fClimbUp);
|
||||
|
||||
/*INT32 sGridNo;
|
||||
INT32 sRoamingOrigin;
|
||||
INT16 sRoamingRange;
|
||||
|
||||
@@ -1845,7 +1854,7 @@ INT32 FindClosestClimbPointAvailableToAI( SOLDIERTYPE * pSoldier, INT32 sStartGr
|
||||
else
|
||||
{
|
||||
return( sGridNo );
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
BOOLEAN ClimbingNecessary( SOLDIERTYPE * pSoldier, INT32 sDestGridNo, INT8 bDestLevel )
|
||||
|
||||
Reference in New Issue
Block a user