mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
If a downed enemy helicopter had soldiers on it, there is a chance that they survived the crash.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8016 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1971,18 +1971,18 @@ UINT16 CountSurfaceSectorsVisited( void )
|
||||
|
||||
return( ubSectorsVisited );
|
||||
}
|
||||
|
||||
// HEADROCK: Count number of VISITABLE sectors
|
||||
UINT16 TotalVisitableSurfaceSectors( void )
|
||||
{
|
||||
UINT8 ubMapX, ubMapY;
|
||||
UINT16 ubVisitableSectors = 0;
|
||||
|
||||
|
||||
|
||||
for ( ubMapX = 1; ubMapX < MAP_WORLD_X - 1; ubMapX++ )
|
||||
{
|
||||
for ( ubMapY = 1; ubMapY < MAP_WORLD_Y - 1; ubMapY++ )
|
||||
{
|
||||
if( SectorInfo[ SECTOR(ubMapX,ubMapY) ].ubTraversability[ THROUGH_STRATEGIC_MOVE ] != GROUNDBARRIER && SectorInfo[ SECTOR(ubMapX,ubMapY) ].ubTraversability[ THROUGH_STRATEGIC_MOVE ] != EDGEOFWORLD )
|
||||
if ( !SectorIsImpassable( SECTOR( ubMapX, ubMapY ) ) )
|
||||
++ubVisitableSectors;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user