mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1017 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2805,6 +2805,10 @@ INT8 DecideActionRed(SOLDIERTYPE *pSoldier, UINT8 ubUnconsciousOK)
|
||||
action = AI_ACTION_FLANK_RIGHT ;
|
||||
break;
|
||||
}
|
||||
|
||||
if (action == AI_ACTION_SEEK_OPPONENT) {
|
||||
return action;
|
||||
}
|
||||
}
|
||||
else
|
||||
return AI_ACTION_SEEK_OPPONENT ;
|
||||
@@ -4602,9 +4606,13 @@ INT8 DecideActionBlack(SOLDIERTYPE *pSoldier)
|
||||
if ( sClosestOpponent != NOWHERE )
|
||||
{
|
||||
// temporarily make boxer have orders of CLOSEPATROL rather than STATIONARY
|
||||
// And make him patrol the ring, not his usual place
|
||||
// so he has a good roaming range
|
||||
USHORT tgrd = pSoldier->usPatrolGrid[0];
|
||||
pSoldier->usPatrolGrid[0] = pSoldier->sGridNo;
|
||||
pSoldier->bOrders = CLOSEPATROL;
|
||||
pSoldier->usActionData = GoAsFarAsPossibleTowards( pSoldier, sClosestOpponent, AI_ACTION_GET_CLOSER );
|
||||
pSoldier->usPatrolGrid[0] = tgrd;
|
||||
pSoldier->bOrders = STATIONARY;
|
||||
if ( pSoldier->usActionData != NOWHERE )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user