mirror of
https://github.com/halpz/re3.git
synced 2024-12-23 17:45:28 +00:00
Fix cast in CObject::ObjectDamage
This commit is contained in:
parent
5544325acb
commit
c2b00d7ad9
|
@ -161,7 +161,7 @@ CObject::ObjectDamage(float amount)
|
|||
bool bBodyCastDamageEffect = false;
|
||||
if (m_modelIndex == MI_BODYCAST){
|
||||
if (amount > 50.0f)
|
||||
nBodyCastHealth = int16(nBodyCastHealth - 0.5f * amount);
|
||||
nBodyCastHealth = (int16)(nBodyCastHealth - 0.5f * amount);
|
||||
if (nBodyCastHealth < 0)
|
||||
nBodyCastHealth = 0;
|
||||
if (nBodyCastHealth < 200)
|
||||
|
|
Loading…
Reference in a new issue