mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
New option AUTO_HIDE_PB (TRUE) enables auto hiding of the progress bar when mouse cursor is on the top map row.
AI soldiers will now avoid staying at top map row. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8723 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -4131,3 +4131,22 @@ UINT8 CountSeenEnemiesLastTurn( SOLDIERTYPE* pSoldier )
|
||||
|
||||
return cnt;
|
||||
}
|
||||
|
||||
BOOLEAN NorthSpot(INT32 sSpot, INT8 bLevel)
|
||||
{
|
||||
if (TileIsOutOfBounds(sSpot))
|
||||
return FALSE;
|
||||
|
||||
if (bLevel > 0)
|
||||
return FALSE;
|
||||
|
||||
INT32 sNextSpot = NewGridNo(sSpot, DirectionInc(NORTHWEST));
|
||||
|
||||
if (gubWorldMovementCosts[sSpot + DirectionInc(NORTHWEST)][NORTHWEST][0] == TRAVELCOST_OFF_MAP ||
|
||||
gubWorldMovementCosts[sNextSpot + DirectionInc(NORTHWEST)][NORTHWEST][0] == TRAVELCOST_OFF_MAP)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user