mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-08 07:20:16 +00:00
A few minor fixes/cleanups (#449)
This commit is contained in:
parent
57db7ba526
commit
d02153707e
11 changed files with 38 additions and 43 deletions
|
@ -109,14 +109,14 @@ void func_809C2218(EnBlkobj* this, GlobalContext* globalCtx) {
|
|||
this->unk_166 += 1;
|
||||
}
|
||||
} else {
|
||||
if ((this->unk_166++ < 0x65) ^ 1) {
|
||||
temp = (this->unk_166 - 0x64) >> 2;
|
||||
if (this->unk_166++ > 100) {
|
||||
temp = (this->unk_166 - 100) >> 2;
|
||||
if (temp > 5) {
|
||||
temp = 5;
|
||||
}
|
||||
this->unk_164 += temp;
|
||||
if (this->unk_164 > 0xFF) {
|
||||
this->unk_164 = 0xFF;
|
||||
if (this->unk_164 > 255) {
|
||||
this->unk_164 = 255;
|
||||
func_809C2060(this, func_809C22F4);
|
||||
DynaPolyInfo_Free(globalCtx, &globalCtx->colCtx.dyna, this->dyna.dynaPolyId);
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ void EnBlkobj_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||
if (this->unk_164 != 0) {
|
||||
func_809C2324(globalCtx, D_060014E0, this->unk_164);
|
||||
}
|
||||
temp_a3 = 0xFF - this->unk_164;
|
||||
temp_a3 = 255 - this->unk_164;
|
||||
if (temp_a3 != 0) {
|
||||
func_809C2324(globalCtx, D_060053D0, temp_a3);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue