reset OnFire status when fire effect is cleared on Clonk death (#222)

Sven Eberhardt 2010-12-10 16:00:53 +01:00
parent fb7a327475
commit 0e75437d40
1 changed files with 4 additions and 0 deletions

View File

@ -404,6 +404,10 @@ void C4Effect::ClearAll(C4Object *pObj, int32_t iClearFlag)
// effect denied to be removed: recover it
iPriority = iPrevPrio;
}
// Update OnFire cache
if (pObj && WildcardMatch(C4Fx_AnyFire, Name) && IsDead())
if (!Get(C4Fx_AnyFire))
pObj->SetOnFire(false);
}
void C4Effect::DoDamage(C4Object *pObj, int32_t &riDamage, int32_t iDamageType, int32_t iCausePlr)