diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2024-06-25 10:54:14 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-24 17:54:14 -0700 |
| commit | 0bb57352a52ba8fa3d361d2f88c2b9063fa71f62 (patch) | |
| tree | c9afbadf18bfde40ff39bf501c82d40840186e13 /src/code/z_eventmgr.c | |
| parent | bb221b4a0fb588389a0847d38ba010c0e46f34d6 (diff) | |
Animation Cleanup: En_T* (#1522)
* anim T cleanup
* more cleanup
* brackets and floats
* small thing
* more floats
* fix name
* fix
* format
---------
Co-authored-by: angie <angheloalf95@gmail.com>
Diffstat (limited to 'src/code/z_eventmgr.c')
| -rw-r--r-- | src/code/z_eventmgr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/z_eventmgr.c b/src/code/z_eventmgr.c index 35e2f1fef..6c629cf5e 100644 --- a/src/code/z_eventmgr.c +++ b/src/code/z_eventmgr.c @@ -318,7 +318,7 @@ s16 CutsceneManager_Update(void) { } void CutsceneManager_Queue(s16 csId) { - if (csId >= 0) { + if (csId > CS_ID_NONE) { sWaitingCutsceneList[csId >> 3] |= 1 << (csId & 7); } } @@ -343,7 +343,7 @@ s16 CutsceneManager_IsNext(s16 csId) { s16 CutsceneManager_StartWithPlayerCs(s16 csId, Actor* actor) { s16 startCsId = CutsceneManager_Start(csId, actor); - if (startCsId >= 0) { + if (startCsId > CS_ID_NONE) { Player_SetCsActionWithHaltedActors(sCutsceneMgr.play, NULL, PLAYER_CSACTION_WAIT); if (sCutsceneMgr.length == 0) { CutsceneManager_Stop(sCutsceneMgr.csId); @@ -359,7 +359,7 @@ s16 CutsceneManager_StartWithPlayerCs(s16 csId, Actor* actor) { s16 CutsceneManager_StartWithPlayerCsAndSetFlag(s16 csId, Actor* actor) { s16 startCsId = CutsceneManager_Start(csId, actor); - if (startCsId >= 0) { + if (startCsId > CS_ID_NONE) { Player_SetCsActionWithHaltedActors(sCutsceneMgr.play, NULL, PLAYER_CSACTION_WAIT); if (sCutsceneMgr.length == 0) { CutsceneManager_Stop(sCutsceneMgr.csId); |
