From 1f4d9c8cdca4b9a29af0191b8764d7787a4c1abe Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 27 Jan 2024 02:51:34 +0100 Subject: [PATCH] Always hide crosshair when dead Previously, the crosshair would show up during the death animation if Always Show Target is enabled or if aiming just before dying. --- src/game/sight.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/game/sight.c b/src/game/sight.c index fb5f255ae..d8fb87007 100644 --- a/src/game/sight.c +++ b/src/game/sight.c @@ -1536,6 +1536,13 @@ Gfx *sightDraw(Gfx *gdl, bool sighton, s32 sight) sight = SIGHT_DEFAULT; } +#ifndef PLATFORM_N64 + if (g_Vars.currentplayer->bondhealth <= 0.0f) { + // Hide crosshair during death animation + sight = SIGHT_NONE; + } +#endif + sightTick(sighton); switch (sight) {