Skip to content

Commit

Permalink
Always hide crosshair when dead
Browse files Browse the repository at this point in the history
Previously, the crosshair would show up during the death animation
if Always Show Target is enabled or if aiming just before dying.
  • Loading branch information
Calinou committed Jan 27, 2024
1 parent 474a6df commit 1f4d9c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/game/sight.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1f4d9c8

Please sign in to comment.