summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-12-06 18:25:14 +0100
committerHaruna <haru@dotalux.com>2014-12-06 18:25:14 +0100
commit738e39d33186a4ff1a620509a7c13d986ff43ecb (patch)
treee5176f3de9e227a8d76aee17c07165b1b7deccde /src/map/map.c
parent04d981077de4bc5d6d0cf69a946091add1dc9309 (diff)
parent2f9c0cc0c00339d2098907ad5542226b12e0f9f4 (diff)
downloadhercules-738e39d33186a4ff1a620509a7c13d986ff43ecb.tar.gz
hercules-738e39d33186a4ff1a620509a7c13d986ff43ecb.tar.bz2
hercules-738e39d33186a4ff1a620509a7c13d986ff43ecb.tar.xz
hercules-738e39d33186a4ff1a620509a7c13d986ff43ecb.zip
Merge pull request #403 from 4144/mapext
into mapindex add variable with default map and position.
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/map.c b/src/map/map.c
index c379911d3..3cb4de5c8 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -5581,9 +5581,9 @@ void map_cp_defaults(void) {
/* default HCP data */
map->cpsd = pc->get_dummy_sd();
strcpy(map->cpsd->status.name, "Hercules Console");
- map->cpsd->bl.x = MAP_DEFAULT_X;
- map->cpsd->bl.y = MAP_DEFAULT_Y;
- map->cpsd->bl.m = map->mapname2mapid(MAP_DEFAULT);
+ map->cpsd->bl.x = mapindex->default_x;
+ map->cpsd->bl.y = mapindex->default_y;
+ map->cpsd->bl.m = map->mapname2mapid(mapindex->default_map);
console->input->addCommand("gm:info",CPCMD_A(gm_position));
console->input->addCommand("gm:use",CPCMD_A(gm_use));