mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-09-08 21:50:52 +02:00
Fix cast in CObject::ObjectDamage
This commit is contained in:
@@ -161,7 +161,7 @@ CObject::ObjectDamage(float amount)
|
|||||||
bool bBodyCastDamageEffect = false;
|
bool bBodyCastDamageEffect = false;
|
||||||
if (m_modelIndex == MI_BODYCAST){
|
if (m_modelIndex == MI_BODYCAST){
|
||||||
if (amount > 50.0f)
|
if (amount > 50.0f)
|
||||||
nBodyCastHealth = int16(nBodyCastHealth - 0.5f * amount);
|
nBodyCastHealth = (int16)(nBodyCastHealth - 0.5f * amount);
|
||||||
if (nBodyCastHealth < 0)
|
if (nBodyCastHealth < 0)
|
||||||
nBodyCastHealth = 0;
|
nBodyCastHealth = 0;
|
||||||
if (nBodyCastHealth < 200)
|
if (nBodyCastHealth < 200)
|
||||||
|
Reference in New Issue
Block a user