From 72880f6286aff5ca5dba9629a9e8c4fbfb0b374a Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 14 May 2020 11:59:34 -0400 Subject: [PATCH] CScriptDebris: Assign dieOnProjectile --- Runtime/World/CScriptDebris.cpp | 1 + Runtime/World/CScriptDebris.hpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Runtime/World/CScriptDebris.cpp b/Runtime/World/CScriptDebris.cpp index 9dcb83f5b..f724dd40f 100644 --- a/Runtime/World/CScriptDebris.cpp +++ b/Runtime/World/CScriptDebris.cpp @@ -89,6 +89,7 @@ CScriptDebris::CScriptDebris(TUniqueId uid, std::string_view name, const CEntity , x281_27_particle2GlobalTranslation(particle2GlobalTranslation) , x281_28_deferDeleteTillParticle2Done(deferDeleteTillParticle2Done) , x281_30_debrisExtended(true) +, x281_31_dieOnProjectile(dieOnProjectile) , x282_24_noBounce(noBounce) , x288_linConeAngle(linConeAngle) , x28c_linMinMag(linMinMag) diff --git a/Runtime/World/CScriptDebris.hpp b/Runtime/World/CScriptDebris.hpp index f32d1a4ac..9d44ee853 100644 --- a/Runtime/World/CScriptDebris.hpp +++ b/Runtime/World/CScriptDebris.hpp @@ -14,9 +14,9 @@ namespace urde { class CElementGen; class CScriptDebris : public CPhysicsActor { public: - enum class EScaleType { NoScale, EndsToZero }; + enum class EScaleType : u8 { NoScale, EndsToZero }; - enum class EOrientationType { NotOriented, AlongVelocity, ToObject, AlongCollisionNormal }; + enum class EOrientationType : u8 { NotOriented, AlongVelocity, ToObject, AlongCollisionNormal }; private: zeus::CVector3f x258_velocity;