mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +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;
|
INT8 bToleranceThreshold = 0;
|
||||||
SOLDIERTYPE *pTeamSoldier;
|
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 )
|
if ( QuoteExp[ pSoldier->ubProfile ].QuoteExpHeadShotOnly == 1 )
|
||||||
{
|
{
|
||||||
@@ -2548,6 +2540,9 @@ void LookForAndMayCommentOnSeeingCorpse( SOLDIERTYPE *pSoldier, INT32 sGridNo, U
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pCorpse->fActivated && pCorpse->def.bVisible != 1)
|
||||||
|
pCorpse->def.bVisible = 1;
|
||||||
|
|
||||||
if ( pCorpse->def.ubType != ROTTING_STAGE2 )
|
if ( pCorpse->def.ubType != ROTTING_STAGE2 )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user