summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorbriaguya <70942617+briaguya-ai@users.noreply.github.com>2022-08-04 17:32:23 -0400
committerGitHub <noreply@github.com>2022-08-04 17:32:23 -0400
commitfacd1723f83f0948ec4a8d0006ffa5ea2f545479 (patch)
tree0657c34239d62489df5f0f4f38696e19c829402a /soh/src/code
parent78ad2820562e80f31b90853d8536133d8f2604f8 (diff)
don't use signed ints for epochs (#1044)
Co-authored-by: briaguya <briaguya@alice>
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_actor.c2
-rw-r--r--soh/src/code/z_kankyo.c6
-rw-r--r--soh/src/code/z_lifemeter.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/soh/src/code/z_actor.c b/soh/src/code/z_actor.c
index fc6e10825..8f132b2c0 100644
--- a/soh/src/code/z_actor.c
+++ b/soh/src/code/z_actor.c
@@ -3973,7 +3973,7 @@ void Actor_DrawDoorLock(GlobalContext* globalCtx, s32 frame, s32 type) {
f32 chainsTranslateX;
f32 chainsTranslateY;
f32 rotZStep;
- static s32 epoch = 0;
+ static u32 epoch = 0;
epoch++;
entry = &sDoorLocksInfo[type];
diff --git a/soh/src/code/z_kankyo.c b/soh/src/code/z_kankyo.c
index de8634f32..7fd9a7480 100644
--- a/soh/src/code/z_kankyo.c
+++ b/soh/src/code/z_kankyo.c
@@ -1459,7 +1459,7 @@ void Environment_DrawLensFlare(GlobalContext* globalCtx, EnvironmentContext* env
LENS_FLARE_RING, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1,
LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1, LENS_FLARE_CIRCLE1,
};
- static s32 epoch = 0;
+ static u32 epoch = 0;
epoch++;
OPEN_DISPS(gfxCtx);
@@ -1642,7 +1642,7 @@ void Environment_DrawRain(GlobalContext* globalCtx, View* view, GraphicsContext*
Vec3f unused = { 0.0f, 0.0f, 0.0f };
Vec3f windDirection = { 0.0f, 0.0f, 0.0f };
Player* player = GET_PLAYER(globalCtx);
- static s32 epoch = 0;
+ static u32 epoch = 0;
epoch++;
if (!(globalCtx->cameraPtrs[0]->unk_14C & 0x100) && (globalCtx->envCtx.unk_EE[2] == 0)) {
@@ -1925,7 +1925,7 @@ void Environment_DrawLightning(GlobalContext* globalCtx, s32 unused) {
s32 pad[2];
Vec3f unused1 = { 0.0f, 0.0f, 0.0f };
Vec3f unused2 = { 0.0f, 0.0f, 0.0f };
- static s32 epoch = 0;
+ static u32 epoch = 0;
epoch++;
OPEN_DISPS(globalCtx->state.gfxCtx);
diff --git a/soh/src/code/z_lifemeter.c b/soh/src/code/z_lifemeter.c
index 400f0a275..071cc18a7 100644
--- a/soh/src/code/z_lifemeter.c
+++ b/soh/src/code/z_lifemeter.c
@@ -413,7 +413,7 @@ void HealthMeter_Draw(GlobalContext* globalCtx) {
s32 curCombineModeSet = 0;
u8* curBgImgLoaded = NULL;
s32 ddHeartCountMinusOne = gSaveContext.inventory.defenseHearts - 1;
- static s32 epoch = 0;
+ static u32 epoch = 0;
epoch++;
OPEN_DISPS(gfxCtx);