Fixed Electricity Wires object not doing instant kill when Lara is in close proximity

This commit is contained in:
Lwmte 2024-12-21 01:02:50 +01:00
parent 13bad20803
commit d75bba698f
2 changed files with 2 additions and 1 deletions

View file

@ -34,6 +34,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Fixed exploding TR3 bosses. * Fixed exploding TR3 bosses.
* Fixed original issue with deactivation of Dart Emitter. * Fixed original issue with deactivation of Dart Emitter.
* Fixed original issue with weapon hotkeys available in binoculars or lasersight mode. * 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 Flare object not functioning properly.
* Fixed lens flares not being occluded by static meshes and moveables. * Fixed lens flares not being occluded by static meshes and moveables.
* Fixed spotlight shadows. * Fixed spotlight shadows.

View file

@ -222,7 +222,7 @@ void ElectricityWiresControl(short itemNumber)
isWaterNearby = true; 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) if (isWaterNearby || instantKill)
{ {