summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2023-11-12 00:27:01 +1100
committerGitHub <noreply@github.com>2023-11-11 10:27:01 -0300
commit8d33d36a9b15f7484f44efe926deac8fd7ee81db (patch)
tree828a992c21db654e9d36a26b65cf8de71359f091 /src
parentb2535fc75a845adffbec760f58c2d654b99f2964 (diff)
fix Misc Data (#1484)
Diffstat (limited to 'src')
-rw-r--r--src/code/z_parameter.c1
-rw-r--r--src/overlays/actors/ovl_En_Pr2/z_en_pr2.c2
-rw-r--r--src/overlays/actors/ovl_En_Zog/z_en_zog.c75
3 files changed, 27 insertions, 51 deletions
diff --git a/src/code/z_parameter.c b/src/code/z_parameter.c
index 898de0b41..1d0b35e93 100644
--- a/src/code/z_parameter.c
+++ b/src/code/z_parameter.c
@@ -4344,6 +4344,7 @@ void Interface_DrawClock(PlayState* play) {
CLOCK_TIME(10, 0), CLOCK_TIME(11, 0), CLOCK_TIME(12, 0), CLOCK_TIME(13, 0), CLOCK_TIME(14, 0),
CLOCK_TIME(15, 0), CLOCK_TIME(16, 0), CLOCK_TIME(17, 0), CLOCK_TIME(18, 0), CLOCK_TIME(19, 0),
CLOCK_TIME(20, 0), CLOCK_TIME(21, 0), CLOCK_TIME(22, 0), CLOCK_TIME(23, 0), CLOCK_TIME(24, 0) - 1,
+ CLOCK_TIME(0, 0),
};
static TexturePtr sThreeDayClockHourTextures[] = {
gThreeDayClockHour12Tex, gThreeDayClockHour1Tex, gThreeDayClockHour2Tex, gThreeDayClockHour3Tex,
diff --git a/src/overlays/actors/ovl_En_Pr2/z_en_pr2.c b/src/overlays/actors/ovl_En_Pr2/z_en_pr2.c
index 6eed95020..e4f6a6fad 100644
--- a/src/overlays/actors/ovl_En_Pr2/z_en_pr2.c
+++ b/src/overlays/actors/ovl_En_Pr2/z_en_pr2.c
@@ -99,7 +99,7 @@ static AnimationHeader* sAnimations[] = {
&object_pr_Anim_003904,
};
-u8 D_80A75C38[] = { ANIMMODE_LOOP, ANIMMODE_LOOP, ANIMMODE_ONCE, ANIMMODE_LOOP };
+u8 D_80A75C38[] = { ANIMMODE_LOOP, ANIMMODE_LOOP, ANIMMODE_ONCE };
s16 D_80A75C3C[] = {
0x00, 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80, 0x90, 0xA0, 0xB0, 0xC0, 0xD0, 0xE0, 0xF0,
diff --git a/src/overlays/actors/ovl_En_Zog/z_en_zog.c b/src/overlays/actors/ovl_En_Zog/z_en_zog.c
index a09670a99..a4945b2e0 100644
--- a/src/overlays/actors/ovl_En_Zog/z_en_zog.c
+++ b/src/overlays/actors/ovl_En_Zog/z_en_zog.c
@@ -69,42 +69,17 @@ static TexturePtr D_80B958AC[] = { object_zog_Tex_024750, object_zog_Tex_024F50,
static TexturePtr D_80B958B8[] = { object_zog_Tex_025F50, object_zog_Tex_026750 };
-static AnimationHeader* D_80B958C0[] = {
+static AnimationHeader* sAnimations[] = {
&object_zog_Anim_00FC0C, &object_zog_Anim_0106B0, &object_zog_Anim_0166F4, &object_zog_Anim_017170,
- &object_zog_Anim_014B10, &object_zog_Anim_018600, &object_zog_Anim_01A06C,
+ &object_zog_Anim_014B10, &object_zog_Anim_018600, &object_zog_Anim_01A06C, &object_zog_Anim_00CA94,
+ &object_zog_Anim_00F110, &object_zog_Anim_01579C, &object_zog_Anim_015B80, &object_zog_Anim_00ECBC,
+ &object_zog_Anim_008EB8, &object_zog_Anim_0099A4, &object_zog_Anim_00931C, &object_zog_Anim_009EC4,
+ &object_zog_Anim_00B01C, &object_zog_Anim_00BF38, &object_zog_Anim_01A990, &object_zog_Anim_01AD58,
+ &object_zog_Anim_01B72C, &object_zog_Anim_01BC88, &object_zog_Anim_001000, &object_zog_Anim_001970,
+ &object_zog_Anim_002344, &object_zog_Anim_002894, &object_zog_Anim_0030E0, &object_zog_Anim_0037F8,
+ &object_zog_Anim_0041D0, &object_zog_Anim_004BDC, &object_zog_Anim_0055B4,
};
-static AnimationHeader* D_80B958DC[] = { &object_zog_Anim_00CA94, &object_zog_Anim_00F110 };
-
-static AnimationHeader* D_80B958E4[] = { &object_zog_Anim_01579C, &object_zog_Anim_015B80, &object_zog_Anim_00ECBC };
-
-static AnimationHeader* D_80B958F0[] = { &object_zog_Anim_008EB8, &object_zog_Anim_0099A4 };
-
-static AnimationHeader* D_80B958F8[] = { &object_zog_Anim_00931C, &object_zog_Anim_009EC4, &object_zog_Anim_00B01C };
-
-static AnimationHeader* D_80B95904[] = {
- &object_zog_Anim_00BF38, &object_zog_Anim_01A990, &object_zog_Anim_01AD58,
- &object_zog_Anim_01B72C, &object_zog_Anim_01BC88,
-};
-
-static AnimationHeader* D_80B95918 = &object_zog_Anim_001000;
-
-static AnimationHeader* D_80B9591C = &object_zog_Anim_001970;
-
-static AnimationHeader* D_80B95920 = &object_zog_Anim_002344;
-
-static AnimationHeader* D_80B95924 = &object_zog_Anim_002894;
-
-static AnimationHeader* D_80B95928 = &object_zog_Anim_0030E0;
-
-static AnimationHeader* D_80B9592C = &object_zog_Anim_0037F8;
-
-static AnimationHeader* D_80B95930 = &object_zog_Anim_0041D0;
-
-static AnimationHeader* D_80B95934 = &object_zog_Anim_004BDC;
-
-static AnimationHeader* D_80B95938 = &object_zog_Anim_0055B4;
-
static s16 D_80B9593C[] = { 0, 1, 2, 3 };
static s16 D_80B95944[] = { 4, 5 };
@@ -272,7 +247,7 @@ void EnZog_Init(Actor* thisx, PlayState* play) {
this->unk_31C = 2;
this->unk_31E = 0;
- Animation_PlayLoop(&this->skelAnime, D_80B958DC[0]);
+ Animation_PlayLoop(&this->skelAnime, sAnimations[7]);
this->actor.textId = 0x1009;
if (CHECK_WEEKEVENTREG(WEEKEVENTREG_91_02)) {
this->actor.textId = 0x103C;
@@ -296,7 +271,7 @@ void EnZog_Destroy(Actor* thisx, PlayState* play) {
}
void func_80B939C0(EnZog* this, s16 arg1, u8 arg2) {
- Animation_Change(&this->skelAnime, D_80B958C0[arg1], 1.0f, 0.0f, Animation_GetLastFrame(D_80B958C0[arg1]), arg2,
+ Animation_Change(&this->skelAnime, sAnimations[arg1], 1.0f, 0.0f, Animation_GetLastFrame(sAnimations[arg1]), arg2,
-5.0f);
this->unk_304 = arg1;
}
@@ -324,7 +299,7 @@ void func_80B93A48(EnZog* this, PlayState* play) {
table = D_80B95974[this->unk_2FC];
this->unk_304 = table[this->unk_302];
- Animation_PlayOnce(&this->skelAnime, D_80B958C0[this->unk_304]);
+ Animation_PlayOnce(&this->skelAnime, sAnimations[this->unk_304]);
SkelAnime_Update(&this->skelAnime);
}
}
@@ -407,13 +382,13 @@ s32 func_80B93EA0(EnZog* this, PlayState* play) {
switch (this->cueId) {
case 2:
case 3:
- Animation_PlayLoop(&this->skelAnime, *D_80B958F0);
+ Animation_PlayLoop(&this->skelAnime, sAnimations[12]);
this->unk_31C = 0;
this->unk_31E = 1;
break;
case 4:
- Animation_PlayLoop(&this->skelAnime, *D_80B958F8);
+ Animation_PlayLoop(&this->skelAnime, sAnimations[14]);
this->unk_31C = 2;
this->unk_31E = 1;
break;
@@ -421,38 +396,38 @@ s32 func_80B93EA0(EnZog* this, PlayState* play) {
case 5:
switch (this->unk_304) {
case 16:
- Animation_PlayOnce(&this->skelAnime, *D_80B95904);
+ Animation_PlayOnce(&this->skelAnime, sAnimations[17]);
this->unk_304 = 17;
this->unk_31C = 2;
this->unk_31E = 0;
break;
case 17:
- Animation_Change(&this->skelAnime, *D_80B958DC, 0.0f, 0.0f, 0.0f, ANIMMODE_LOOP, 0.0f);
+ Animation_Change(&this->skelAnime, sAnimations[7], 0.0f, 0.0f, 0.0f, ANIMMODE_LOOP, 0.0f);
break;
}
break;
case 6:
- Animation_PlayLoop(&this->skelAnime, *D_80B958E4);
+ Animation_PlayLoop(&this->skelAnime, sAnimations[9]);
this->unk_31C = 1;
this->unk_31E = 1;
break;
case 12:
- Animation_PlayLoop(&this->skelAnime, D_80B95930);
+ Animation_PlayLoop(&this->skelAnime, sAnimations[28]);
break;
case 13:
- Animation_PlayLoop(&this->skelAnime, D_80B95938);
+ Animation_PlayLoop(&this->skelAnime, sAnimations[30]);
break;
case 14:
- Animation_PlayLoop(&this->skelAnime, D_80B95928);
+ Animation_PlayLoop(&this->skelAnime, sAnimations[26]);
break;
case 15:
- Animation_PlayLoop(&this->skelAnime, D_80B9591C);
+ Animation_PlayLoop(&this->skelAnime, sAnimations[23]);
break;
}
SkelAnime_Update(&this->skelAnime);
@@ -559,24 +534,24 @@ s32 func_80B93EA0(EnZog* this, PlayState* play) {
break;
case 11:
- Animation_PlayLoop(&this->skelAnime, D_80B95920);
+ Animation_PlayLoop(&this->skelAnime, sAnimations[24]);
break;
case 12:
- Animation_PlayOnce(&this->skelAnime, D_80B9592C);
+ Animation_PlayOnce(&this->skelAnime, sAnimations[27]);
break;
case 13:
- Animation_PlayOnce(&this->skelAnime, D_80B95934);
+ Animation_PlayOnce(&this->skelAnime, sAnimations[29]);
break;
case 14:
this->unk_30A |= 2;
- Animation_PlayOnce(&this->skelAnime, D_80B95924);
+ Animation_PlayOnce(&this->skelAnime, sAnimations[25]);
break;
case 15:
- Animation_PlayOnce(&this->skelAnime, D_80B95918);
+ Animation_PlayOnce(&this->skelAnime, sAnimations[22]);
break;
}
}