Skip to content

Commit

Permalink
Fix conflicting types for rotating gate functions (#2087)
Browse files Browse the repository at this point in the history
  • Loading branch information
DizzyEggg authored Jan 17, 2025
1 parent 0a436d5 commit e83f7c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/rotating_gate.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef GUARD_ROTATING_GATE_H
#define GUARD_ROTATING_GATE_H

void RotatingGatePuzzleCameraUpdate(s16, s16);
void RotatingGatePuzzleCameraUpdate(s16 deltaX, s16 deltaY);
void RotatingGate_InitPuzzleAndGraphics(void);
u32 CheckForRotatingGatePuzzleCollision(u8, s16, s16);
bool32 CheckForRotatingGatePuzzleCollisionWithoutAnimation(u8, s16, s16);
bool32 CheckForRotatingGatePuzzleCollision(u8 direction, s16 x, s16 y);
bool32 CheckForRotatingGatePuzzleCollisionWithoutAnimation(u8 direction, s16 x, s16 y);

#endif // GUARD_ROTATING_GATE_H
7 changes: 4 additions & 3 deletions src/rotating_gate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "event_data.h"
#include "event_object_movement.h"
#include "fieldmap.h"
#include "rotating_gate.h"
#include "sound.h"
#include "sprite.h"
#include "constants/songs.h"
Expand Down Expand Up @@ -938,7 +939,7 @@ void RotatingGate_InitPuzzle(void)
}
}

void RotatingGatePuzzleCameraUpdate(u16 deltaX, u16 deltaY)
void RotatingGatePuzzleCameraUpdate(s16 deltaX, s16 deltaY)
{
if (GetCurrentMapRotatingGatePuzzleType())
{
Expand All @@ -957,7 +958,7 @@ void RotatingGate_InitPuzzleAndGraphics(void)
}
}

bool8 CheckForRotatingGatePuzzleCollision(u8 direction, s16 x, s16 y)
bool32 CheckForRotatingGatePuzzleCollision(u8 direction, s16 x, s16 y)
{
s32 i;

Expand Down Expand Up @@ -995,7 +996,7 @@ bool8 CheckForRotatingGatePuzzleCollision(u8 direction, s16 x, s16 y)
return FALSE;
}

bool8 CheckForRotatingGatePuzzleCollisionWithoutAnimation(u8 direction, s16 x, s16 y)
bool32 CheckForRotatingGatePuzzleCollisionWithoutAnimation(u8 direction, s16 x, s16 y)
{
s32 i;

Expand Down

0 comments on commit e83f7c7

Please sign in to comment.