diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/collision_check.h | 2 | ||||
| -rw-r--r-- | include/game_over.h | 10 | ||||
| -rw-r--r-- | include/ultra64/gu.h | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/include/collision_check.h b/include/collision_check.h index d3d756abc..2e486d83d 100644 --- a/include/collision_check.h +++ b/include/collision_check.h @@ -381,7 +381,7 @@ typedef struct CollisionCheckContext { #define ATELEM_HIT (1 << 1) // Had an AT collision #define ATELEM_NEAREST (1 << 2) // For COLSHAPE_QUAD colliders, only collide with the closest AC element #define ATELEM_SFX_MASK (3 << 3) -#define ATELEM_SFX_NORMAL (0 << 3) // Hit sound effect based on AC collider's type +#define ATELEM_SFX_NORMAL (0 << 3) // Hit sound effect based on AC collider's material #define ATELEM_SFX_HARD (1 << 3) // Always uses hard deflection sound #define ATELEM_SFX_WOOD (2 << 3) // Always uses wood deflection sound #define ATELEM_SFX_NONE (3 << 3) // No hit sound effect diff --git a/include/game_over.h b/include/game_over.h index e91ad0413..2d3d4ebcc 100644 --- a/include/game_over.h +++ b/include/game_over.h @@ -6,11 +6,11 @@ struct PlayState; typedef enum GameOverState { - /* 00 */ GAMEOVER_INACTIVE, - /* 01 */ GAMEOVER_DEATH_START, - /* 02 */ GAMEOVER_DEATH_WAIT_GROUND, // wait for link to fall and hit the ground - /* 03 */ GAMEOVER_DEATH_DELAY_MENU, // wait for 1 second before showing the game over menu - /* 04 */ GAMEOVER_DEATH_MENU, // do nothing while kaleidoscope handles the game over menu + /* 0 */ GAMEOVER_INACTIVE, + /* 1 */ GAMEOVER_DEATH_START, + /* 2 */ GAMEOVER_DEATH_WAIT_GROUND, // wait for link to fall and hit the ground + /* 3 */ GAMEOVER_DEATH_DELAY_MENU, // wait for 1 second before showing the game over menu + /* 4 */ GAMEOVER_DEATH_MENU, // do nothing while kaleidoscope handles the game over menu /* 20 */ GAMEOVER_REVIVE_START = 20, /* 21 */ GAMEOVER_REVIVE_RUMBLE, /* 22 */ GAMEOVER_REVIVE_WAIT_GROUND, // wait for link to fall and hit the ground diff --git a/include/ultra64/gu.h b/include/ultra64/gu.h index d0548b3a8..19be1a1a9 100644 --- a/include/ultra64/gu.h +++ b/include/ultra64/gu.h @@ -5,7 +5,9 @@ #define GU_PI 3.1415926 +#ifndef FTOFIX32 #define FTOFIX32(x) (s32)((x) * (f32)0x00010000) +#endif #define FIX32TOF(x) ((f32)(x) * (1.0f / (f32)0x00010000)) #define ROUND(x) (s32)(((x) >= 0.0) ? ((x) + 0.5) : ((x) - 0.5)) |
