summaryrefslogtreecommitdiff
path: root/docs/tutorial/documenting.md
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 /docs/tutorial/documenting.md
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 'docs/tutorial/documenting.md')
-rw-r--r--docs/tutorial/documenting.md26
1 files changed, 13 insertions, 13 deletions
diff --git a/docs/tutorial/documenting.md b/docs/tutorial/documenting.md
index 9013ab010..619b30c06 100644
--- a/docs/tutorial/documenting.md
+++ b/docs/tutorial/documenting.md
@@ -49,15 +49,15 @@ void func_80C10290(EnRecepgirl* this);
void func_80C102D4(EnRecepgirl* this, PlayState* play);
ActorInit En_Recepgirl_InitVars = {
- ACTOR_EN_RECEPGIRL,
- ACTORCAT_NPC,
- FLAGS,
- OBJECT_BG,
- sizeof(EnRecepgirl),
- (ActorFunc)EnRecepgirl_Init,
- (ActorFunc)EnRecepgirl_Destroy,
- (ActorFunc)EnRecepgirl_Update,
- (ActorFunc)EnRecepgirl_Draw,
+ /**/ ACTOR_EN_RECEPGIRL,
+ /**/ ACTORCAT_NPC,
+ /**/ FLAGS,
+ /**/ OBJECT_BG,
+ /**/ sizeof(EnRecepgirl),
+ /**/ EnRecepgirl_Init,
+ /**/ EnRecepgirl_Destroy,
+ /**/ EnRecepgirl_Update,
+ /**/ EnRecepgirl_Draw,
};
static void* D_80C106B0[4] = { object_bg_Tex_00F8F0, object_bg_Tex_00FCF0, object_bg_Tex_0100F0, object_bg_Tex_00FCF0 };
@@ -317,10 +317,10 @@ As we discussed last time, `D_80C106B0` is an array of [segmented pointers](data
```C
ActorInit En_Recepgirl_InitVars = {
- ACTOR_EN_RECEPGIRL,
- ACTORCAT_NPC,
- FLAGS,
- OBJECT_BG,
+ /**/ ACTOR_EN_RECEPGIRL,
+ /**/ ACTORCAT_NPC,
+ /**/ FLAGS,
+ /**/ OBJECT_BG,
```
the fourth element is the object (it is actually an enum, but the file itself has the same name as the object enum). So, we need to look at the object file. We are very lucky that a custom tool has been written for such a thing: Z64Utils.