fix for "white face" when saying some quote which happened when the soldier was bleeding in different sector than we are in right now

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9035 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Shadooow
2021-05-21 14:01:40 +00:00
parent 0b6dfdb24d
commit 5d81b61f8e
+8 -5
View File
@@ -23735,11 +23735,14 @@ void SOLDIERTYPE::HandleSoldierTakeDamageFeedback( void )
this->DoMercBattleSound( BATTLE_SOUND_HIT1 );
}
}
// Flash portrait....
this->flags.fFlashPortrait = TRUE;
this->bFlashPortraitFrame = FLASH_PORTRAIT_STARTSHADE;
RESETTIMECOUNTER( this->timeCounters.PortraitFlashCounter, FLASH_PORTRAIT_DELAY );
// shadooow: Do this ONLY if buddy is in sector.....
if ((this->bInSector && guiCurrentScreen == GAME_SCREEN) || guiCurrentScreen != GAME_SCREEN)
{
// Flash portrait....
this->flags.fFlashPortrait = TRUE;
this->bFlashPortraitFrame = FLASH_PORTRAIT_STARTSHADE;
RESETTIMECOUNTER(this->timeCounters.PortraitFlashCounter, FLASH_PORTRAIT_DELAY);
}
}