Skip to content

Commit dabf12b

Browse files
committed
sa1: reference collison_2 from sa2
1 parent e3a066a commit dabf12b

6 files changed

Lines changed: 202 additions & 365 deletions

File tree

include/game/shared/stage/collision.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ u32 Coll_Player_Platform(Sprite *, CamCoord x, CamCoord y, Player *);
7878
bool32 Coll_AmyHammer_Spring(Sprite *s, CamCoord worldX, CamCoord worldY, Player *p);
7979
#endif
8080

81-
u32 sub_800CE94(Sprite *s, s32 sx, s32 sy, Rect8 *param3, Player *p);
8281
bool32 SA2_LABEL(sub_800DD54)(Player *p);
8382
bool32 SA2_LABEL(sub_800DE44)(Player *p);
8483
u32 SA2_LABEL(sub_800D0A0)(Sprite *s, s16 worldX, s16 worldY, s16 qSpeedX, s16 qSpeedY, u8 layer, u32 arg6);

sa1/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ SA2_C_FILES := \
270270
src/game/shared/collect_rings/results.c \
271271
src/game/shared/menus/unused_level_select.c \
272272
src/game/shared/stage/collision_1.c \
273+
src/game/shared/stage/collision_2.c \
273274
src/game/sa1/ui/game_2_0.c \
274275
src/game/sa1/ui/game_2_1.c \
275276
src/game/sa1/ui/stage_results.c \

sa1/ldscript.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ SECTIONS {
3030
src/game/shared/stage/entities_manager.o(.text);
3131
sa2/src/game/shared/stage/collision_1.o(.text);
3232
src/game/shared/stage/collision_3.o(.text);
33-
src/game/shared/stage/collision_2.o(.text);
33+
sa2/src/game/shared/stage/collision_2.o(.text);
3434
sa2/src/game/shared/stage/palette_loader.o(.text);
3535

3636
/* Menus */

sa1/src/game/shared/stage/collision_2.c

Lines changed: 0 additions & 349 deletions
This file was deleted.

src/game/shared/stage/collision_1.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
#include "constants/sa2/char_states.h"
1616
#endif
1717

18+
#if (GAME == GAME_SA2)
19+
static u32 sub_800CE94(Sprite *s, s32 sx, s32 sy, Rect8 *inRect, Player *p);
20+
#endif
21+
1822
// COLLISION 1
1923

2024
u32 Coll_Player_Platform(Sprite *s, CamCoord x, CamCoord y, Player *p)
@@ -125,7 +129,7 @@ u32 Coll_Player_Interactable(Sprite *s, s32 sx, s32 sy, Player *p)
125129

126130
// Looks like each byte in the result is one value
127131
// TODO: Remove gotos
128-
u32 sub_800CE94(Sprite *s, s32 sx, s32 sy, Rect8 *inRect, Player *p)
132+
static u32 sub_800CE94(Sprite *s, s32 sx, s32 sy, Rect8 *inRect, Player *p)
129133
{
130134
s32 px = I(p->qWorldX);
131135
s32 py = I(p->qWorldY);

0 commit comments

Comments
 (0)