From 7bbe5ffc39529097c4169b94ed92ec688de18dc3 Mon Sep 17 00:00:00 2001 From: jadebenn Date: Fri, 17 Nov 2023 18:43:01 -0600 Subject: [PATCH] Fix falling from Spider Cave not smashing you (#1302) --- dGame/dGameMessages/GameMessages.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dGame/dGameMessages/GameMessages.cpp b/dGame/dGameMessages/GameMessages.cpp index 82a7ee77..33717059 100644 --- a/dGame/dGameMessages/GameMessages.cpp +++ b/dGame/dGameMessages/GameMessages.cpp @@ -4170,6 +4170,13 @@ void GameMessages::HandleRequestDie(RakNet::BitStream* inStream, Entity* entity, racingControlComponent->OnRequestDie(entity); } + else { + auto* destroyableComponent = entity->GetComponent(); + + if (!destroyableComponent) return; + + destroyableComponent->Smash(killerID, killType, deathType); + } }