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.
This commit is contained in:
Hugo Locurcio committed 2024-01-27 19:19:06 +01:00
1 parent 474a6df3d4
commit 1f4d9c8cdc
1 file changed
+7
+7
View File
@@ -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) {