Skip to content

Commit

Permalink
Merge pull request #372 from Calinou/crosshair-hide-when-dead
Browse files Browse the repository at this point in the history
Always hide crosshair when dead
  • Loading branch information
fgsfdsfgs authored Jan 28, 2024
2 parents 474a6df + 1f4d9c8 commit cc6df47
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 cc6df47

Please sign in to comment.