Skip to content

Commit 67ecd33

Browse files
committed
sa1: reference water_effects from sa2
1 parent 15e38af commit 67ecd33

11 files changed

Lines changed: 148 additions & 562 deletions

File tree

include/game/shared/stage/underwater_effects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "core.h"
55
#include "game/shared/stage/player.h"
66

7-
extern void sub_804C40C(void);
7+
extern void InitWaterPalettes(void);
88

99
struct Task *SpawnDrowningCountdownNum(Player *p, s32 countdown);
1010
struct Task *SpawnAirBubbles(s32 p0, s32 p1, s32 p2, s32 p3);

sa1/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ SA2_C_FILES := \
272272
src/game/shared/stage/collision_1.c \
273273
src/game/shared/stage/collision_2.c \
274274
src/game/shared/stage/collision_3.c \
275+
src/game/shared/stage/water_effects.c \
275276
src/game/sa1/ui/game_2_0.c \
276277
src/game/sa1/ui/game_2_1.c \
277278
src/game/sa1/ui/stage_results.c \

sa1/asm/non_matching/game/sa1/stage/stage_ui__Task_8055458.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ _08055622:
269269
cmp r0, #1
270270
bhi _08055672
271271
bl LoadPalette423Anim
272-
bl sub_804C40C
272+
bl InitWaterPalettes
273273
_08055672:
274274
ldr r0, [r4, #0x20]
275275
bl TaskDestroy
@@ -332,7 +332,7 @@ _08055708:
332332
lsrs r0, r0, #0x18
333333
cmp r0, #1
334334
bhi _0805571A
335-
bl sub_804C40C
335+
bl InitWaterPalettes
336336
_0805571A:
337337
add sp, #4
338338
pop {r3, r4, r5}

sa1/ldscript.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ SECTIONS {
144144
sa2/src/game/sa1/stage/player_super_sonic.o(.text);
145145
sa2/src/game/shared/stage/item_tasks.o(.text);
146146
sa2/src/game/shared/stage/underwater_effects.o(.text);
147-
src/game/shared/stage/water_effects.o(.text);
147+
sa2/src/game/shared/stage/water_effects.o(.text);
148148
sa2/src/game/shared/stage/screen_shake.o(.text);
149149

150150
/* NOTE: input_recorder was not part of the engine in this version */

sa1/scripts/disasm.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ thumb_func 0x0804c12c sub_804C12C
898898
thumb_func 0x0804c1c0 sub_804C1C0
899899
thumb_func 0x0804c2e8 sub_804C2E8
900900
thumb_func 0x0804c3cc sub_804C3CC
901-
thumb_func 0x0804c40c sub_804C40C
901+
thumb_func 0x0804c40c InitWaterPalettes
902902
thumb_func 0x0804c598 sub_804C598
903903
thumb_func 0x0804c5d8 sub_804C5D8
904904
thumb_func 0x0804c668 sub_804C668

0 commit comments

Comments
 (0)