mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
New ingame option: Smart tree tops.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8936 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2854,12 +2854,18 @@ BOOLEAN HandleAtNewGridNo( SOLDIERTYPE *pSoldier, BOOLEAN *pfKeepMoving )
|
||||
// trversing...
|
||||
if ( gubWaitingForAllMercsToExitCode == WAIT_FOR_MERCS_TO_WALKOFF_SCREEN || gubWaitingForAllMercsToExitCode == WAIT_FOR_MERCS_TO_WALK_TO_GRIDNO )
|
||||
{
|
||||
// sevenfm: update tree visibility
|
||||
UpdateTreeVisibility();
|
||||
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
// Check if they are out of breath
|
||||
if ( pSoldier->CheckForBreathCollapse( ) )
|
||||
{
|
||||
// sevenfm: update tree visibility
|
||||
UpdateTreeVisibility();
|
||||
|
||||
(*pfKeepMoving ) = TRUE;
|
||||
return( FALSE );
|
||||
}
|
||||
@@ -2867,6 +2873,9 @@ BOOLEAN HandleAtNewGridNo( SOLDIERTYPE *pSoldier, BOOLEAN *pfKeepMoving )
|
||||
// see if a mine gets set off...
|
||||
if (SetOffBombsInGridNo( pSoldier->ubID, pSoldier->sGridNo, FALSE, pSoldier->pathing.bLevel ) )
|
||||
{
|
||||
// sevenfm: update tree visibility
|
||||
UpdateTreeVisibility();
|
||||
|
||||
(*pfKeepMoving) = FALSE;
|
||||
pSoldier->EVENT_StopMerc( pSoldier->sGridNo, pSoldier->ubDirection );
|
||||
return( FALSE );
|
||||
@@ -2897,6 +2906,9 @@ BOOLEAN HandleAtNewGridNo( SOLDIERTYPE *pSoldier, BOOLEAN *pfKeepMoving )
|
||||
HandleSight(pSoldier,SIGHT_LOOK | SIGHT_RADIO | SIGHT_INTERRUPT);
|
||||
}
|
||||
|
||||
// sevenfm: update tree visibility
|
||||
UpdateTreeVisibility();
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// SANDRO - if pending interrupt flag was set for movement type of interupt, resolve it here
|
||||
if ( UsingImprovedInterruptSystem() )
|
||||
|
||||
Reference in New Issue
Block a user