mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Correct AP check
We can't do anything with negative action points either.
This commit is contained in:
@@ -5114,7 +5114,7 @@ INT8 DecideActionBlack(SOLDIERTYPE *pSoldier)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if we have absolutely no action points, we can't do a thing under BLACK!
|
// if we have absolutely no action points, we can't do a thing under BLACK!
|
||||||
if (!pSoldier->bActionPoints)
|
if (pSoldier->bActionPoints <= 0)
|
||||||
{
|
{
|
||||||
pSoldier->aiData.usActionData = NOWHERE;
|
pSoldier->aiData.usActionData = NOWHERE;
|
||||||
return(AI_ACTION_NONE);
|
return(AI_ACTION_NONE);
|
||||||
|
|||||||
Reference in New Issue
Block a user