1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-21 22:41:14 +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

@ -11,8 +11,6 @@
#define FLAGS 0x02000030
#define THIS ((ObjectKankyo*)thisx)
void ObjectKankyo_Init(Actor* thisx, GlobalContext* globalCtx);
void ObjectKankyo_Destroy(Actor* thisx, GlobalContext* globalCtx);
void ObjectKankyo_Update(Actor* thisx, GlobalContext* globalCtx);
@ -67,7 +65,7 @@ void ObjectKankyo_SetupAction(ObjectKankyo* this, ObjectKankyoActionFunc action)
}
void ObjectKankyo_Init(Actor* thisx, GlobalContext* globalCtx) {
ObjectKankyo* this = THIS;
ObjectKankyo* this = (ObjectKankyo*)thisx;
s32 pad;
s16 i;
@ -452,13 +450,13 @@ void ObjectKankyo_Fairies(ObjectKankyo* this, GlobalContext* globalCtx) {
}
void ObjectKankyo_Update(Actor* thisx, GlobalContext* globalCtx) {
ObjectKankyo* this = THIS;
ObjectKankyo* this = (ObjectKankyo*)thisx;
this->actionFunc(this, globalCtx);
}
void ObjectKankyo_Draw(Actor* thisx, GlobalContext* globalCtx) {
ObjectKankyo* this = THIS;
ObjectKankyo* this = (ObjectKankyo*)thisx;
switch (this->actor.params) {
case 0: