1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-13 11:24:40 +00:00

Cleanup pad's in z_scene_table.c (#1215)

* cleanup

* More cleanup
This commit is contained in:
engineer124 2022-05-08 00:10:06 +10:00 committed by GitHub
parent ca77b26c90
commit 5cc5cf5a7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 57 deletions

View file

@ -26,7 +26,7 @@ void TransitionFade_Start(void* thisx) {
this->fadeColor.a = 0;
break;
}
this->isDone = 0;
this->isDone = false;
}
void* TransitionFade_Init(void* thisx) {
@ -51,7 +51,7 @@ void TransitionFade_Update(void* thisx, s32 updateRate) {
this->fadeTimer += updateRate;
if (this->fadeTimer >= gSaveContext.transFadeDuration) {
this->fadeTimer = gSaveContext.transFadeDuration;
this->isDone = 1;
this->isDone = true;
}
if (!gSaveContext.transFadeDuration) {
// "Divide by 0! Zero is included in ZCommonGet fade_speed"
@ -72,7 +72,7 @@ void TransitionFade_Update(void* thisx, s32 updateRate) {
Math_StepToS(&iREG(50), 20, 60);
if (Math_StepToS(&newAlpha, 0, iREG(50))) {
iREG(50) = 0;
this->isDone = 1;
this->isDone = true;
}
}
}