mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Move visibility check after already included pCorpse check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user