mirror of
https://github.com/mrxenginner/reVC.git
synced 2026-10-12 02:08:15 +08:00
Fix cast in CObject::ObjectDamage
This commit is contained in:
1 parent
5544325acb
commit
c2b00d7ad9
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user