summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-10-27 10:03:02 -0300
committerGitHub <noreply@github.com>2023-10-27 10:03:02 -0300
commitcf41eeb3ac65c0d51d6758ddc4cad9474b38a796 (patch)
tree1bbe5a5141eaceb65623ec527cc77f76592e1166 /src/code
parent6475196f0fd24b1697241e3662bc732cdd81d212 (diff)
Remove `(ActorFunc)` cast on `InitVars` (#1148)
* Remove ActorFunc cast * Format * Revert "Format" This reverts commit a6e89b39692c22cfae26c8aa3a8fe288ccd61c32. * Messing with formatting * format header a bit * Revert "Messing with formatting" This reverts commit c8db520278d7730a83e3fbc460ebe87929c16928. * comment * format * more comments * format * format * format * properly format
Diffstat (limited to 'src/code')
-rw-r--r--src/code/z_en_a_keep.c18
-rw-r--r--src/code/z_en_item00.c18
-rw-r--r--src/code/z_player_call.c18
3 files changed, 27 insertions, 27 deletions
diff --git a/src/code/z_en_a_keep.c b/src/code/z_en_a_keep.c
index 1fa4d4cf2..0f7224388 100644
--- a/src/code/z_en_a_keep.c
+++ b/src/code/z_en_a_keep.c
@@ -14,15 +14,15 @@ void EnAObj_Idle(EnAObj* this, PlayState* play);
void EnAObj_Talk(EnAObj* this, PlayState* play);
ActorInit En_A_Obj_InitVars = {
- ACTOR_EN_A_OBJ,
- ACTORCAT_PROP,
- FLAGS,
- GAMEPLAY_KEEP,
- sizeof(EnAObj),
- (ActorFunc)EnAObj_Init,
- (ActorFunc)EnAObj_Destroy,
- (ActorFunc)EnAObj_Update,
- (ActorFunc)EnAObj_Draw,
+ /* */ ACTOR_EN_A_OBJ,
+ /* */ ACTORCAT_PROP,
+ /* */ FLAGS,
+ /* */ GAMEPLAY_KEEP,
+ /* */ sizeof(EnAObj),
+ /* */ EnAObj_Init,
+ /* */ EnAObj_Destroy,
+ /* */ EnAObj_Update,
+ /* */ EnAObj_Draw,
};
static ColliderCylinderInit sCylinderInit = {
diff --git a/src/code/z_en_item00.c b/src/code/z_en_item00.c
index d0dada57d..d22576ad7 100644
--- a/src/code/z_en_item00.c
+++ b/src/code/z_en_item00.c
@@ -26,15 +26,15 @@ void EnItem00_DrawHeartContainer(EnItem00* this, PlayState* play);
void EnItem00_DrawHeartPiece(EnItem00* this, PlayState* play);
ActorInit En_Item00_InitVars = {
- ACTOR_EN_ITEM00,
- ACTORCAT_MISC,
- FLAGS,
- GAMEPLAY_KEEP,
- sizeof(EnItem00),
- (ActorFunc)EnItem00_Init,
- (ActorFunc)EnItem00_Destroy,
- (ActorFunc)EnItem00_Update,
- (ActorFunc)EnItem00_Draw,
+ /**/ ACTOR_EN_ITEM00,
+ /**/ ACTORCAT_MISC,
+ /**/ FLAGS,
+ /**/ GAMEPLAY_KEEP,
+ /**/ sizeof(EnItem00),
+ /**/ EnItem00_Init,
+ /**/ EnItem00_Destroy,
+ /**/ EnItem00_Update,
+ /**/ EnItem00_Draw,
};
static ColliderCylinderInit sCylinderInit = {
diff --git a/src/code/z_player_call.c b/src/code/z_player_call.c
index 44427d54c..e28fa6d6a 100644
--- a/src/code/z_player_call.c
+++ b/src/code/z_player_call.c
@@ -16,15 +16,15 @@ void PlayerCall_Update(Actor* thisx, PlayState* play);
void PlayerCall_Draw(Actor* thisx, PlayState* play);
ActorInit Player_InitVars = {
- ACTOR_PLAYER,
- ACTORCAT_PLAYER,
- FLAGS,
- GAMEPLAY_KEEP,
- sizeof(Player),
- (ActorFunc)PlayerCall_Init,
- (ActorFunc)PlayerCall_Destroy,
- (ActorFunc)PlayerCall_Update,
- (ActorFunc)PlayerCall_Draw,
+ /**/ ACTOR_PLAYER,
+ /**/ ACTORCAT_PLAYER,
+ /**/ FLAGS,
+ /**/ GAMEPLAY_KEEP,
+ /**/ sizeof(Player),
+ /**/ PlayerCall_Init,
+ /**/ PlayerCall_Destroy,
+ /**/ PlayerCall_Update,
+ /**/ PlayerCall_Draw,
};
void Player_Init(Actor* thisx, PlayState* play);