mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Use constants for warp into MAP_INSIDE_OF_TRUCK
This commit is contained in:
parent
c3dde7353d
commit
2c0f5f58e9
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user