summaryrefslogtreecommitdiff
path: root/src/code/z_lifemeter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/z_lifemeter.c')
-rw-r--r--src/code/z_lifemeter.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/code/z_lifemeter.c b/src/code/z_lifemeter.c
index d9abe151d..9f4f6c47e 100644
--- a/src/code/z_lifemeter.c
+++ b/src/code/z_lifemeter.c
@@ -1,6 +1,5 @@
#include "prevent_bss_reordering.h"
#include "global.h"
-#include "overlays/kaleido_scope/ovl_kaleido_scope/z_kaleido_scope.h"
#include "interface/parameter_static/parameter_static.h"
s16 sHeartsPrimColors[3][3] = { { 255, 70, 50 }, { 255, 190, 0 }, { 100, 100, 255 } };
@@ -406,8 +405,8 @@ void LifeMeter_UpdateSizeAndBeep(PlayState* play) {
if (interfaceCtx->lifeSizeChange <= 0) {
interfaceCtx->lifeSizeChange = 0;
interfaceCtx->lifeSizeChangeDirection = 0;
- if (!Player_InCsMode(play) && (play->pauseCtx.state == PAUSE_STATE_OFF) &&
- (play->pauseCtx.debugEditor == DEBUG_EDITOR_NONE) && LifeMeter_IsCritical() && !Play_InCsMode(play)) {
+ if (!Player_InCsMode(play) && !IS_PAUSED(&play->pauseCtx) && LifeMeter_IsCritical() &&
+ !Play_InCsMode(play)) {
Audio_PlaySfx(NA_SE_SY_HITPOINT_ALARM);
}
}