1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-21 14:31:17 +00:00

Document SaveContext.gameMode (#1295)

* Document `SaveContext.gameMode`

* end credits

* Remove no longer needed comment
This commit is contained in:
Dragorn421 2022-06-23 18:32:48 -07:00 committed by GitHub
parent e16779cc33
commit 984871eb38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 41 additions and 31 deletions

View file

@ -49,8 +49,7 @@ void EnLight_Init(Actor* thisx, PlayState* play) {
EnLight* this = (EnLight*)thisx;
s16 yOffset;
if (gSaveContext.gameMode == 3) {
// special case for the credits
if (gSaveContext.gameMode == GAMEMODE_END_CREDITS) {
yOffset = (this->actor.params < 0) ? 1 : 40;
Lights_PointNoGlowSetInfo(&this->lightInfo, this->actor.world.pos.x, yOffset + (s16)this->actor.world.pos.y,
this->actor.world.pos.z, 255, 255, 180, -1);