summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorpetrie911 <69443847+petrie911@users.noreply.github.com>2021-03-31 11:18:31 -0500
committerGitHub <noreply@github.com>2021-03-31 12:18:31 -0400
commit9b4482314a1dbbaf8ac354f587db45ee8697d431 (patch)
tree8cac42b160f39a2ff6fd29f6a1948441e6c154ae /docs
parent28cfd82a4f692cdeb1e66c2df980da07e6b41e2d (diff)
OnePointDemo OK (#719)
* matches * more matches * progress? * it's time * so close * organize declarations * docs * more fixes * more fixes * fix stage 1 * more fixes * first try * demo ids in decimal * final cleanup * one more thing * fixes * more cleanup * onepointcs * OnePointCutscene Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorial/other_functions.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/other_functions.md b/docs/tutorial/other_functions.md
index 73ea69617..46ace1d6e 100644
--- a/docs/tutorial/other_functions.md
+++ b/docs/tutorial/other_functions.md
@@ -497,7 +497,7 @@ Again we have run out of action functions. The rules suggest that we now look at
Update runs every frame and updates the properties of the actor, and usually runs the action functions once per frame. As before we change the first argument to `EnJj* this` to get it to use our actor's struct. mips2c gives
```C
void EnJj_Update(EnJj *this, GlobalContext *globalCtx) {
- if ((globalCtx->csCtx.state != 0) && (globalCtx->unk1D94 != 0)) {
+ if ((globalCtx->csCtx.state != CS_STATE_IDLE) && (globalCtx->unk1D94 != 0)) {
func_80A87D94();
} else {
this->actionFunc(this);
@@ -521,7 +521,7 @@ Lastly, what is `globalCtx->unk1D94`? It is at `globalCtx->csCtx + 0x30`, or `gl
void EnJj_Update(Actor *thisx, GlobalContext *globalCtx) {
EnJj* this = THIS;
- if ((globalCtx->csCtx.state != 0) && (globalCtx->csCtx.npcActions[2] != NULL)) {
+ if ((globalCtx->csCtx.state != CS_STATE_IDLE) && (globalCtx->csCtx.npcActions[2] != NULL)) {
func_80A87D94(this, globalCtx);
} else {
this->actionFunc(this, globalCtx);