1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-05-12 12:03:48 +00:00

dogIsLost is infact a bool

This commit is contained in:
fig02 2020-03-20 20:46:59 -04:00
parent dff17518ef
commit 8c17271ca3

View file

@ -326,7 +326,7 @@ static void EnDog_Init(EnDog* this, GlobalContext* globalCtx)
switch (globalCtx->sceneNum) switch (globalCtx->sceneNum)
{ {
case SCENE_MARKET_NIGHT: case SCENE_MARKET_NIGHT:
if ((gSaveContext.dogIsLost == 0) && (((this->actor.params & 0x0F00) >> 8) == 1)) if ((!gSaveContext.dogIsLost) && (((this->actor.params & 0x0F00) >> 8) == 1))
{ {
Actor_Kill(&this->actor); Actor_Kill(&this->actor);
} }
@ -334,7 +334,7 @@ static void EnDog_Init(EnDog* this, GlobalContext* globalCtx)
case SCENE_IMPA: // Richard's Home case SCENE_IMPA: // Richard's Home
if ((u32)(this->actor.params & 0x8000) == 0) if ((u32)(this->actor.params & 0x8000) == 0)
{ {
if (gSaveContext.dogIsLost == 0) if (!gSaveContext.dogIsLost)
{ {
this->nextBehavior = DOG_SIT; this->nextBehavior = DOG_SIT;
this->actionFunc = EnDog_Wait; this->actionFunc = EnDog_Wait;