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

@ -10,8 +10,6 @@
#define FLAGS 0x00000010
#define THIS ((EnPart*)thisx)
void EnPart_Init(Actor* thisx, GlobalContext* globalCtx);
void EnPart_Destroy(Actor* thisx, GlobalContext* globalCtx);
void EnPart_Update(Actor* thisx, GlobalContext* globalCtx);
@ -241,7 +239,7 @@ void EnPart_Update(Actor* thisx, GlobalContext* globalCtx) {
func_80ACDDE8, func_80ACE13C, func_80ACE5B8, func_80ACE5C8, func_80ACE7E8,
};
EnPart* this = THIS;
EnPart* this = (EnPart*)thisx;
Actor_MoveForward(&this->actor);
@ -275,7 +273,7 @@ Gfx* func_80ACEAC0(GraphicsContext* gfxCtx, u8 primR, u8 primG, u8 primB, u8 env
}
void EnPart_Draw(Actor* thisx, GlobalContext* globalCtx) {
EnPart* this = THIS;
EnPart* this = (EnPart*)thisx;
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_part.c", 647);