Move visibility check after already included pCorpse check

This commit is contained in:
steph-pg
2025-10-14 05:35:40 -03:00
committed by majcosta
parent 07dbf9c848
commit 72e586a378
+3 -8
View File
@@ -2527,14 +2527,6 @@ void LookForAndMayCommentOnSeeingCorpse( SOLDIERTYPE *pSoldier, INT32 sGridNo, U
INT8 bToleranceThreshold = 0;
SOLDIERTYPE *pTeamSoldier;
pCorpse = GetCorpseAtGridNo(sGridNo, ubLevel);
if (pCorpse == NULL)
{
return;
}
if (pCorpse->fActivated && pCorpse->def.bVisible != 1)
pCorpse->def.bVisible = 1;
if ( QuoteExp[ pSoldier->ubProfile ].QuoteExpHeadShotOnly == 1 )
{
@@ -2548,6 +2540,9 @@ void LookForAndMayCommentOnSeeingCorpse( SOLDIERTYPE *pSoldier, INT32 sGridNo, U
return;
}
if (pCorpse->fActivated && pCorpse->def.bVisible != 1)
pCorpse->def.bVisible = 1;
if ( pCorpse->def.ubType != ROTTING_STAGE2 )
{
return;