From d75bba698f850501ef463363324eebb072abf985 Mon Sep 17 00:00:00 2001 From: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Sat, 21 Dec 2024 01:02:50 +0100 Subject: [PATCH] Fixed Electricity Wires object not doing instant kill when Lara is in close proximity --- CHANGELOG.md | 1 + TombEngine/Objects/Effects/tr5_electricity.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d9103ce8..9d26d1156 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor): * Fixed exploding TR3 bosses. * Fixed original issue with deactivation of Dart Emitter. * Fixed original issue with weapon hotkeys available in binoculars or lasersight mode. +* Fixed Electricity Wires object not doing instant kill when Lara is in close proximity. * Fixed Lens Flare object not functioning properly. * Fixed lens flares not being occluded by static meshes and moveables. * Fixed spotlight shadows. diff --git a/TombEngine/Objects/Effects/tr5_electricity.cpp b/TombEngine/Objects/Effects/tr5_electricity.cpp index 81e6db94a..d28616621 100644 --- a/TombEngine/Objects/Effects/tr5_electricity.cpp +++ b/TombEngine/Objects/Effects/tr5_electricity.cpp @@ -222,7 +222,7 @@ void ElectricityWiresControl(short itemNumber) isWaterNearby = true; } - bool instantKill = BoundingSphere(Vector3(pos.x, pos.y, pos.z), CLICK(0.25f)).Intersects(npcBox); + bool instantKill = BoundingSphere(Vector3(pos.x, pos.y, pos.z), BLOCK(0.25f)).Intersects(npcBox); if (isWaterNearby || instantKill) {