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

@ -5,8 +5,6 @@
#define FLAGS 0x00000015
#define THIS ((EnDodongo*)thisx)
typedef enum {
DODONGO_SWEEP_TAIL,
DODONGO_SWALLOW_BOMB,
@ -307,7 +305,7 @@ static InitChainEntry sInitChain[] = {
};
void EnDodongo_Init(Actor* thisx, GlobalContext* globalCtx) {
EnDodongo* this = THIS;
EnDodongo* this = (EnDodongo*)thisx;
EffectBlureInit1 blureInit;
this->actor.targetMode = 3;
@ -348,7 +346,7 @@ void EnDodongo_Init(Actor* thisx, GlobalContext* globalCtx) {
void EnDodongo_Destroy(Actor* thisx, GlobalContext* globalCtx) {
s32 pad;
EnDodongo* this = THIS;
EnDodongo* this = (EnDodongo*)thisx;
Effect_Delete(globalCtx, this->blureIdx);
Collider_DestroyTris(globalCtx, &this->colliderHard);
@ -765,7 +763,7 @@ void EnDodongo_UpdateQuad(EnDodongo* this, GlobalContext* globalCtx) {
void EnDodongo_Update(Actor* thisx, GlobalContext* globalCtx) {
s32 pad;
EnDodongo* this = THIS;
EnDodongo* this = (EnDodongo*)thisx;
EnDodongo_CollisionCheck(this, globalCtx);
if (this->actor.colChkInfo.damageEffect != 0xE) {
@ -798,7 +796,7 @@ void EnDodongo_Update(Actor* thisx, GlobalContext* globalCtx) {
s32 EnDodongo_OverrideLimbDraw(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3s* rot,
void* thisx) {
EnDodongo* this = THIS;
EnDodongo* this = (EnDodongo*)thisx;
if ((limbIndex == 15) || (limbIndex == 16)) {
Matrix_Scale(this->bodyScale.x, this->bodyScale.y, this->bodyScale.z, MTXMODE_APPLY);
@ -820,7 +818,7 @@ void EnDodongo_PostLimbDraw(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList
Vec3f hardTris2Vtx[3];
Vec3f tailTip;
Vec3f tailBase;
EnDodongo* this = THIS;
EnDodongo* this = (EnDodongo*)thisx;
Vec3f hardTris0VtxOffset[] = {
{ -300.0f, -2500.0f, 0.0f },
{ -300.0f, 1200.0f, -2700.0f },
@ -916,7 +914,7 @@ void EnDodongo_PostLimbDraw(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList
void EnDodongo_Draw(Actor* thisx, GlobalContext* globalCtx2) {
GlobalContext* globalCtx = globalCtx2;
EnDodongo* this = THIS;
EnDodongo* this = (EnDodongo*)thisx;
s32 index;
func_80093D18(globalCtx->state.gfxCtx);