mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Fixes (by The_Bob):
- Fixed never ending interrupt bug (cats/bugs got interrupt when out of breath) - Added condition to interrupt code for minimal breath left to get interrupts - Tweaked timer control code git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8401 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -22006,8 +22006,10 @@ BOOLEAN ResolvePendingInterrupt( SOLDIERTYPE * pSoldier, UINT8 ubInterruptType )
|
||||
pInterrupter = MercPtrs[uCnt];
|
||||
if ( pInterrupter == NULL )
|
||||
continue; // not valid
|
||||
if ( pInterrupter->stats.bLife < OKLIFE || pInterrupter->bCollapsed || !pInterrupter->bActive || !pInterrupter->bInSector || pInterrupter->bActionPoints < 4 )
|
||||
if (pInterrupter->stats.bLife < OKLIFE || pInterrupter->bCollapsed || !pInterrupter->bActive || !pInterrupter->bInSector || pInterrupter->bActionPoints < 4)
|
||||
continue; // not active
|
||||
if (pInterrupter->bBreath < OKBREATH && pInterrupter->bTeam != OUR_TEAM)
|
||||
continue; // BOB: prevent NPCs from getting interrupts when out of breath
|
||||
if ( pSoldier->bTeam == pInterrupter->bTeam )
|
||||
continue; // same team
|
||||
if ( pSoldier->bSide == pInterrupter->bSide )
|
||||
|
||||
Reference in New Issue
Block a user