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

Match retail z_fbdemo.c and z_fbdemo_fade.c (#1727)

* Match retail z_fbdemo.c and z_fbdemo_fade.c

* Tweak macro arguments
This commit is contained in:
cadmic 2024-02-06 21:32:23 -08:00 committed by GitHub
parent 2ee7a2b7ff
commit 300b3a8ffd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 15 deletions

View file

@ -62,7 +62,7 @@ void TransitionFade_Update(void* thisx, s32 updateRate) {
break;
case TRANS_FADE_TYPE_ONE_WAY:
this->timer += updateRate;
((TransitionFade*)thisx)->timer += updateRate;
if (this->timer >= gSaveContext.transFadeDuration) {
this->timer = gSaveContext.transFadeDuration;
this->isDone = true;