summaryrefslogtreecommitdiff
path: root/src/code/z_en_a_keep.c
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2021-12-04 11:33:00 -0500
committerGitHub <noreply@github.com>2021-12-04 11:33:00 -0500
commite635e34265e5e1bc830193930fa1ea9fd552db8d (patch)
tree4047808b44e8d3003d3c972e0b614d39a0d9a19f /src/code/z_en_a_keep.c
parent68899c2e330a6a9fb31b8a025eaa06707bcddfb0 (diff)
Remove THIS macro (#1047)
* remove THIS * fix * forgot dorf
Diffstat (limited to 'src/code/z_en_a_keep.c')
-rw-r--r--src/code/z_en_a_keep.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/code/z_en_a_keep.c b/src/code/z_en_a_keep.c
index 4dc68d04a..fd3edc86e 100644
--- a/src/code/z_en_a_keep.c
+++ b/src/code/z_en_a_keep.c
@@ -4,8 +4,6 @@
#define FLAGS 0x00000010
-#define THIS ((EnAObj*)thisx)
-
void EnAObj_Init(Actor* thisx, GlobalContext* globalCtx);
void EnAObj_Destroy(Actor* thisx, GlobalContext* globalCtx);
void EnAObj_Update(Actor* thisx, GlobalContext* globalCtx);
@@ -87,7 +85,7 @@ void EnAObj_SetupAction(EnAObj* this, EnAObjActionFunc actionFunc) {
void EnAObj_Init(Actor* thisx, GlobalContext* globalCtx) {
CollisionHeader* colHeader = NULL;
s32 pad;
- EnAObj* this = THIS;
+ EnAObj* this = (EnAObj*)thisx;
f32 shadowScale = 6.0f;
this->textId = (thisx->params >> 8) & 0xFF;
@@ -186,7 +184,7 @@ void EnAObj_Init(Actor* thisx, GlobalContext* globalCtx) {
}
void EnAObj_Destroy(Actor* thisx, GlobalContext* globalCtx) {
- EnAObj* this = THIS;
+ EnAObj* this = (EnAObj*)thisx;
DynaPoly_DeleteBgActor(globalCtx, &globalCtx->colCtx.dyna, this->dyna.bgId);
@@ -320,7 +318,7 @@ void EnAObj_Block(EnAObj* this, GlobalContext* globalCtx) {
}
void EnAObj_Update(Actor* thisx, GlobalContext* globalCtx) {
- EnAObj* this = THIS;
+ EnAObj* this = (EnAObj*)thisx;
this->actionFunc(this, globalCtx);
Actor_MoveForward(&this->dyna.actor);