1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-23 07:21:19 +00:00

Remove THIS macro (#1047)

* remove THIS

* fix

* forgot dorf
This commit is contained in:
fig02 2021-12-04 11:33:00 -05:00 committed by GitHub
parent 68899c2e33
commit e635e34265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
433 changed files with 1996 additions and 2859 deletions

View file

@ -9,8 +9,6 @@
#define FLAGS 0x00000009
#define THIS ((EnTana*)thisx)
void EnTana_Init(Actor* thisx, GlobalContext* globalCtx);
void EnTana_Destroy(Actor* thisx, GlobalContext* globalCtx);
void EnTana_Update(Actor* thisx, GlobalContext* globalCtx);
@ -56,7 +54,7 @@ static void* sStoneTextures[] = {
};
void EnTana_Init(Actor* thisx, GlobalContext* globalCtx) {
EnTana* this = THIS;
EnTana* this = (EnTana*)thisx;
osSyncPrintf("☆☆☆ %s ☆☆☆\n", sShelfTypes[thisx->params]);
Actor_SetScale(thisx, 1.0f);
@ -71,7 +69,7 @@ void EnTana_Update(Actor* thisx, GlobalContext* globalCtx) {
}
void EnTana_DrawWoodenShelves(Actor* thisx, GlobalContext* globalCtx) {
EnTana* this = THIS;
EnTana* this = (EnTana*)thisx;
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_tana.c", 148);
@ -84,7 +82,7 @@ void EnTana_DrawWoodenShelves(Actor* thisx, GlobalContext* globalCtx) {
}
void EnTana_DrawStoneShelves(Actor* thisx, GlobalContext* globalCtx) {
EnTana* this = THIS;
EnTana* this = (EnTana*)thisx;
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_tana.c", 163);