summaryrefslogtreecommitdiffstats
path: root/src/objects/Object.cpp
diff options
context:
space:
mode:
authorsaml1er <danishroar@gmail.com>2020-04-10 18:59:49 +0200
committersaml1er <danishroar@gmail.com>2020-04-10 18:59:49 +0200
commit4f00576a8c2ae03443848c5548cd5ad0e0e8d002 (patch)
tree6dc6c126aa6608f41c9cf46321e852bafc3451b9 /src/objects/Object.cpp
parentRefactor CObject::ObjectDamage switch statement (diff)
downloadre3-4f00576a8c2ae03443848c5548cd5ad0e0e8d002.tar
re3-4f00576a8c2ae03443848c5548cd5ad0e0e8d002.tar.gz
re3-4f00576a8c2ae03443848c5548cd5ad0e0e8d002.tar.bz2
re3-4f00576a8c2ae03443848c5548cd5ad0e0e8d002.tar.lz
re3-4f00576a8c2ae03443848c5548cd5ad0e0e8d002.tar.xz
re3-4f00576a8c2ae03443848c5548cd5ad0e0e8d002.tar.zst
re3-4f00576a8c2ae03443848c5548cd5ad0e0e8d002.zip
Diffstat (limited to '')
-rw-r--r--src/objects/Object.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/objects/Object.cpp b/src/objects/Object.cpp
index aec9eba1..ca0ebf86 100644
--- a/src/objects/Object.cpp
+++ b/src/objects/Object.cpp
@@ -185,6 +185,7 @@ CObject::ObjectDamage(float amount)
bExplosionProof = true;
m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f);
m_vecTurnSpeed = CVector(0.0f, 0.0f, 0.0f);
+ break;
case COLDAMAGE_EFFECT_CHANGE_THEN_SMASH:
if (!bRenderDamaged) {
bRenderDamaged = true;
@@ -294,8 +295,6 @@ CObject::ObjectDamage(float amount)
PlayOneShotScriptObject(_SCRSOUND_COL_CAR, vecPos);
break;
}
- default:
- return;
}
}
}