1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-17 20:42:23 +00:00

Document Actor_DrawDoorLock (#1045)

This commit is contained in:
Dragorn421 2021-12-02 01:32:23 +01:00 committed by GitHub
parent ff49ace524
commit b3d5f549e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 38 deletions

View file

@ -155,7 +155,7 @@ void DoorGerudo_Draw(Actor* thisx, GlobalContext* globalCtx) {
if (this->unk_166 != 0) {
Matrix_Scale(0.01f, 0.01f, 0.025f, MTXMODE_APPLY);
Actor_DrawDoorLock(globalCtx, this->unk_166, 0);
Actor_DrawDoorLock(globalCtx, this->unk_166, DOORLOCK_NORMAL);
}
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_door_gerudo.c", 377);

View file

@ -749,7 +749,9 @@ void DoorShutter_Draw(Actor* thisx, GlobalContext* globalCtx) {
if (this->unk_16E != 0) {
Matrix_Scale(0.01f, 0.01f, 0.025f, MTXMODE_APPLY);
Actor_DrawDoorLock(globalCtx, this->unk_16E,
(this->doorType == SHUTTER_BOSS) ? 1 : ((this->unk_16C == 6) ? 2 : 0));
(this->doorType == SHUTTER_BOSS)
? DOORLOCK_BOSS
: ((this->unk_16C == 6) ? DOORLOCK_NORMAL_SPIRIT : DOORLOCK_NORMAL));
}
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_door_shutter.c", 2135);

View file

@ -344,7 +344,7 @@ void EnDoor_Draw(Actor* thisx, GlobalContext* globalCtx) {
}
}
if (this->lockTimer != 0) {
Actor_DrawDoorLock(globalCtx, this->lockTimer, 0);
Actor_DrawDoorLock(globalCtx, this->lockTimer, DOORLOCK_NORMAL);
}
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_en_door.c", 941);