mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- bug fixing in the sam site externalization code
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@638 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -54,7 +54,7 @@ extern UINT8 gubCurrentTalkingID;
|
||||
// current temp path for dest char
|
||||
extern PathStPtr pTempHelicopterPath;
|
||||
|
||||
extern UINT8 ubSAMControlledSectors[ MAP_WORLD_X ][ MAP_WORLD_Y ];
|
||||
extern UINT8 ubSAMControlledSectors[ MAP_WORLD_Y ][ MAP_WORLD_X ];
|
||||
|
||||
// the seating capacities
|
||||
extern INT32 iSeatingCapacities[];
|
||||
@@ -1709,7 +1709,7 @@ BOOLEAN WillAirRaidBeStopped( INT16 sSectorX, INT16 sSectorY )
|
||||
|
||||
|
||||
// which SAM controls this sector?
|
||||
ubSamNumber = ubSAMControlledSectors[ sSectorX ][ sSectorY ];
|
||||
ubSamNumber = ubSAMControlledSectors[ sSectorY ][ sSectorX ];
|
||||
|
||||
DebugMsg(TOPIC_JA2,DBG_LEVEL_3,String("WillAirRaidBeStopped: SAM number = %d",ubSamNumber));
|
||||
// if none of them
|
||||
@@ -1772,7 +1772,7 @@ BOOLEAN HandleSAMSiteAttackOfHelicopterInSector( INT16 sSectorX, INT16 sSectorY
|
||||
}
|
||||
|
||||
// which SAM controls this sector?
|
||||
ubSamNumber = ubSAMControlledSectors[ sSectorX ][ sSectorY ];
|
||||
ubSamNumber = ubSAMControlledSectors[ sSectorY ][ sSectorX ];
|
||||
|
||||
// if none of them
|
||||
if (ubSamNumber == 0)
|
||||
|
||||
Reference in New Issue
Block a user