mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- Fix out of array bug in GuySawEnemyThisTurnOrBefore function which force AI to run along the latest guy who see your mercs before you manage to hide.
- HEIGHTUNITS_PER_CELL definition must be float. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6372 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1720,6 +1720,8 @@ BOOLEAN GuySawEnemyThisTurnOrBefore( SOLDIERTYPE * pSoldier )
|
||||
|
||||
for ( ubTeamLoop = 0; ubTeamLoop < MAXTEAMS; ubTeamLoop++ )
|
||||
{
|
||||
if(!gTacticalStatus.Team[ubTeamLoop].bTeamActive)//dnl ch58 070913 skip any inactive teams
|
||||
continue;
|
||||
if ( gTacticalStatus.Team[ ubTeamLoop ].bSide != pSoldier->bSide )
|
||||
{
|
||||
// consider guys in this team, which isn't on our side
|
||||
|
||||
Reference in New Issue
Block a user