1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-02-28 03:50:07 +00:00

Eh early return probably makes more sense here

This commit is contained in:
Sirius902 2020-10-06 12:50:58 -07:00
parent 8046499566
commit 558856d234

View file

@ -913,9 +913,10 @@ void EnIk_Update(Actor* thisx, GlobalContext* globalCtx) {
if (this->action < 0 || this->action >= ARRAY_COUNT(sActionFuncs) || sActionFuncs[this->action] == NULL) { if (this->action < 0 || this->action >= ARRAY_COUNT(sActionFuncs) || sActionFuncs[this->action] == NULL) {
osSyncPrintf(VT_FGCOL(RED) "メインモードがおかしい!!!!!!!!!!!!!!!!!!!!!!!!!\n" VT_RST); osSyncPrintf(VT_FGCOL(RED) "メインモードがおかしい!!!!!!!!!!!!!!!!!!!!!!!!!\n" VT_RST);
} else { return;
sActionFuncs[this->action](this, globalCtx);
} }
sActionFuncs[this->action](this, globalCtx);
} }
s32 EnIk_OverrideLimbDraw1(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3s* rot, Actor* actor); s32 EnIk_OverrideLimbDraw1(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3s* rot, Actor* actor);
@ -951,9 +952,10 @@ void EnIk_Draw(Actor* thisx, GlobalContext* globalCtx) {
if (this->drawMode < 0 || this->drawMode >= ARRAY_COUNT(sDrawFuncs) || sDrawFuncs[this->drawMode] == NULL) { if (this->drawMode < 0 || this->drawMode >= ARRAY_COUNT(sDrawFuncs) || sDrawFuncs[this->drawMode] == NULL) {
osSyncPrintf(VT_FGCOL(RED) "描画モードがおかしい!!!!!!!!!!!!!!!!!!!!!!!!!\n" VT_RST); osSyncPrintf(VT_FGCOL(RED) "描画モードがおかしい!!!!!!!!!!!!!!!!!!!!!!!!!\n" VT_RST);
} else { return;
sDrawFuncs[this->drawMode](this, globalCtx);
} }
sDrawFuncs[this->drawMode](this, globalCtx);
} }
void func_80A780D0(EnIk* this, GlobalContext* globalCtx) { void func_80A780D0(EnIk* this, GlobalContext* globalCtx) {