summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-12-27 11:24:34 -0600
committerMarcus Huderle <huderlem@gmail.com>2018-12-27 11:24:34 -0600
commit2c0f5f58e9234f34f5f4aa2ffae931a57c6cf19e (patch)
tree4b098246061a35ee5a0d69ae8449c4d55ec1485d
parentc3dde7353dfeaa3cdb21c9ddeaa1af4f53aac383 (diff)
Use constants for warp into MAP_INSIDE_OF_TRUCK
-rw-r--r--src/new_game.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/new_game.c b/src/new_game.c
index 4804b28f3..82e8c2c96 100644
--- a/src/new_game.c
+++ b/src/new_game.c
@@ -27,6 +27,7 @@
#include "pokedex.h"
#include "apprentice.h"
#include "frontier_util.h"
+#include "constants/maps.h"
extern u16 gSaveFileStatus;
extern u8 gUnknown_030060B0;
@@ -135,7 +136,7 @@ static void ClearFrontierRecord(void)
static void WarpToTruck(void)
{
- Overworld_SetWarpDestination(25, 40, -1, -1, -1); // inside of truck
+ Overworld_SetWarpDestination(MAP_GROUP(INSIDE_OF_TRUCK), MAP_NUM(INSIDE_OF_TRUCK), -1, -1, -1);
WarpIntoMap();
}