1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-10 19:20:13 +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)
{
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);
}
@ -334,7 +334,7 @@ static void EnDog_Init(EnDog* this, GlobalContext* globalCtx)
case SCENE_IMPA: // Richard's Home
if ((u32)(this->actor.params & 0x8000) == 0)
{
if (gSaveContext.dogIsLost == 0)
if (!gSaveContext.dogIsLost)
{
this->nextBehavior = DOG_SIT;
this->actionFunc = EnDog_Wait;