mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Fix for leaving merc never reaching final sector until current battle is finished (by Shadooow).
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8991 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1890,21 +1890,16 @@ void GroupArrivedAtSector( UINT8 ubGroupID, BOOLEAN fCheckForBattle, BOOLEAN fNe
|
|||||||
fExceptionQueue = TRUE;
|
fExceptionQueue = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//First check if the group arriving is going to queue another battle. //KM : Aug 11, 1999 -- Patch fix: Added additional checks to prevent a 2nd battle in the case
|
||||||
//First check if the group arriving is going to queue another battle.
|
//NOTE: We can't have more than one battle ongoing at a time. //where the player is involved in a potential battle with bloodcats/civilians
|
||||||
//NOTE: We can't have more than one battle ongoing at a time.
|
if( fExceptionQueue || (fCheckForBattle && (gTacticalStatus.fEnemyInSector || HostileCiviliansPresent() || HostileBloodcatsPresent()) &&
|
||||||
if( fExceptionQueue || fCheckForBattle && gTacticalStatus.fEnemyInSector &&
|
|
||||||
FindMovementGroupInSector( (UINT8)gWorldSectorX, (UINT8)gWorldSectorY, OUR_TEAM ) &&
|
FindMovementGroupInSector( (UINT8)gWorldSectorX, (UINT8)gWorldSectorY, OUR_TEAM ) &&
|
||||||
(pGroup->ubNextX != gWorldSectorX || pGroup->ubNextY != gWorldSectorY || gbWorldSectorZ > 0 ) ||
|
(pGroup->ubNextX != gWorldSectorX || pGroup->ubNextY != gWorldSectorY || gbWorldSectorZ > 0 ) && NumHostilesInSector(pGroup->ubNextX, pGroup->ubNextY, pGroup->ubSectorZ) > 0)
|
||||||
#ifdef JA2UB
|
#ifdef JA2UB
|
||||||
//Ja25: NO meanwhiles
|
//Ja25: NO meanwhiles
|
||||||
#else
|
#else
|
||||||
AreInMeanwhile() ||
|
|| AreInMeanwhile()
|
||||||
#endif
|
#endif
|
||||||
//KM : Aug 11, 1999 -- Patch fix: Added additional checks to prevent a 2nd battle in the case
|
|
||||||
// where the player is involved in a potential battle with bloodcats/civilians
|
|
||||||
fCheckForBattle && HostileCiviliansPresent() ||
|
|
||||||
fCheckForBattle && HostileBloodcatsPresent()
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//QUEUE BATTLE!
|
//QUEUE BATTLE!
|
||||||
|
|||||||
Reference in New Issue
Block a user