diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-26 00:12:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-06 16:22:40 +0300 |
commit | 0147ed8a48a7f01d0619dec3eb2813b879f1dee7 (patch) | |
tree | af90f12ec9e9c64070fb8eae9d5b2fc35ed2912a /src/map/map.c | |
parent | 867ca32885a67fa69a00a3814ba33208274e81ba (diff) | |
download | hercules-0147ed8a48a7f01d0619dec3eb2813b879f1dee7.tar.gz hercules-0147ed8a48a7f01d0619dec3eb2813b879f1dee7.tar.bz2 hercules-0147ed8a48a7f01d0619dec3eb2813b879f1dee7.tar.xz hercules-0147ed8a48a7f01d0619dec3eb2813b879f1dee7.zip |
into mapindex add variable with default map and position.
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 6 |
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)); |