summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaml1er <danishroar@gmail.com>2020-04-10 16:37:09 +0200
committersaml1er <danishroar@gmail.com>2020-04-10 16:37:09 +0200
commitc2b00d7ad9c61a4e9e0ce99f944c57358877fc1a (patch)
treef8eece53e262dfadd0fb034b80e5ea169c71eb22
parentRefactor CObject::ObjectDamage (diff)
downloadre3-c2b00d7ad9c61a4e9e0ce99f944c57358877fc1a.tar
re3-c2b00d7ad9c61a4e9e0ce99f944c57358877fc1a.tar.gz
re3-c2b00d7ad9c61a4e9e0ce99f944c57358877fc1a.tar.bz2
re3-c2b00d7ad9c61a4e9e0ce99f944c57358877fc1a.tar.lz
re3-c2b00d7ad9c61a4e9e0ce99f944c57358877fc1a.tar.xz
re3-c2b00d7ad9c61a4e9e0ce99f944c57358877fc1a.tar.zst
re3-c2b00d7ad9c61a4e9e0ce99f944c57358877fc1a.zip
Diffstat (limited to '')
-rw-r--r--src/objects/Object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objects/Object.cpp b/src/objects/Object.cpp
index 7eb56a1c..5fe3b4b1 100644
--- a/src/objects/Object.cpp
+++ b/src/objects/Object.cpp
@@ -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)