summaryrefslogtreecommitdiff
path: root/src/field/wild_encounter.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-12-21 13:25:12 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2017-12-21 13:25:12 -0500
commit0f116854b2408ea7750e9c3f8da4d4ea2a3e0d38 (patch)
tree38bb9b6d56ea6c60be2087e9ff4e76b82c6a8d1b /src/field/wild_encounter.c
parent272cd213391b5ce87cb2aeac263b3eedb0f19a07 (diff)
parent85a8e5f1ded5a0a2354916617dd0b82091a42ee0 (diff)
Merge branch 'master' of https://github.com/pret/pokeruby into assert
Diffstat (limited to 'src/field/wild_encounter.c')
-rw-r--r--src/field/wild_encounter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/field/wild_encounter.c b/src/field/wild_encounter.c
index cc4468728..4bf83cad8 100644
--- a/src/field/wild_encounter.c
+++ b/src/field/wild_encounter.c
@@ -3695,7 +3695,7 @@ const u16 gRoute119WaterTileData[] =
0x5C, 0x8B, 0x12A,
};
-extern u16 gScriptResult;
+extern u16 gSpecialVar_Result;
extern u8 S_RepelWoreOff[];
EWRAM_DATA static u8 sWildEncountersDisabled = 0;
@@ -4167,18 +4167,18 @@ void ScrSpecial_RockSmashWildEncounter(void)
if (wildPokemonInfo == NULL)
{
- gScriptResult = 0;
+ gSpecialVar_Result = 0;
return;
}
else if (DoWildEncounterTest(wildPokemonInfo->encounterRate, 1) == TRUE
&& GenerateWildMon(wildPokemonInfo, 2, TRUE) == TRUE)
{
BattleSetup_StartWildBattle();
- gScriptResult = 1;
+ gSpecialVar_Result = 1;
return;
}
}
- gScriptResult = 0;
+ gSpecialVar_Result = 0;
return;
}