Forbid time compression if hostile civilians or bloodcats are in the sector. Otherwise all travelling squads are delayed over and over again.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6324 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2013-08-26 21:57:19 +00:00
parent 6ad228e91e
commit df7cb392c5
11 changed files with 30 additions and 0 deletions
@@ -1416,6 +1416,14 @@ BOOLEAN AllowedToTimeCompress( void )
{
return FALSE;
}
// Flugente: no time compression if hostile civilians bloodcats are in the current sector.
// Otherwise time progresses, but squad arrivals will be delayed as long as they still exist
if ( HostileCiviliansPresent() || HostileBloodcatsPresent() )
{
return FALSE;
}
#ifdef JA2UB
//if the player hasnt been to the initial sector yet
if( !GetSectorFlagStatus( gGameExternalOptions.ubDefaultArrivalSectorX, gGameExternalOptions.ubDefaultArrivalSectorY, 0, SF_HAS_ENTERED_TACTICAL ) ) //7, 8