mirror of
https://github.com/zeldaret/tmc
synced 2026-07-04 05:20:42 -04:00
Fix palette groups
This commit is contained in:
+6
-6
@@ -225,9 +225,9 @@ void PlayerUpdate(Entity* this) {
|
||||
static void HandlePlayerLife(Entity* this) {
|
||||
u32 temp;
|
||||
|
||||
gUnk_0200AF00.unk_2f = 0;
|
||||
gUnk_0200AF00.unk_2d = 0;
|
||||
gUnk_0200AF00.unk_2e = 0;
|
||||
gHUD.unk_2f = 0;
|
||||
gHUD.unk_2d = 0;
|
||||
gHUD.unk_2e = 0;
|
||||
|
||||
if ((gPlayerEntity.contactFlags & 0x80) && (gPlayerEntity.iframes > 0))
|
||||
SoundReq(SFX_86);
|
||||
@@ -255,7 +255,7 @@ static void HandlePlayerLife(Entity* this) {
|
||||
return;
|
||||
|
||||
#ifdef EU
|
||||
if ((gUnk_0200AF00.unk_1 == 0) && gRoomTransition.frameCount % 90 == 0) {
|
||||
if ((gHUD.hideFlags == HUD_HIDE_NONE) && gRoomTransition.frameCount % 90 == 0) {
|
||||
temp = gSave.stats.maxHealth / 4;
|
||||
if (temp > 24)
|
||||
temp = 24;
|
||||
@@ -276,7 +276,7 @@ static void HandlePlayerLife(Entity* this) {
|
||||
|
||||
if (gSave.stats.health <= temp) {
|
||||
gRoomVars.unk2 = 1;
|
||||
if ((gUnk_0200AF00.unk_1 == 0) && gRoomTransition.frameCount % 90 == 0) {
|
||||
if ((gHUD.hideFlags == HUD_HIDE_NONE) && gRoomTransition.frameCount % 90 == 0) {
|
||||
EnqueueSFX(SFX_LOW_HEALTH);
|
||||
}
|
||||
}
|
||||
@@ -323,7 +323,7 @@ static void sub_080171F0(void) {
|
||||
sub_080028E0(&gPlayerEntity);
|
||||
|
||||
if (gPlayerState.flags & PL_CLONING)
|
||||
gUnk_0200AF00.unk_2f = 1;
|
||||
gHUD.unk_2f = 1;
|
||||
|
||||
sub_08078180();
|
||||
gPlayerState.field_0x7 &= ~0x80;
|
||||
|
||||
Reference in New Issue
Block a user