diff options
author | shennetsind <ind@henn.et> | 2013-12-06 22:32:27 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-06 22:32:27 -0200 |
commit | d4a58d24d6bcb23a995d62a3d9f9e7190c054b49 (patch) | |
tree | 6e58a0b50957e222ea45d9bb16d47332e2e0a76e /src/map/instance.c | |
parent | 1f1930c0e3d2bb928d9fc9a39f360815daf77e8f (diff) | |
download | hercules-d4a58d24d6bcb23a995d62a3d9f9e7190c054b49.tar.gz hercules-d4a58d24d6bcb23a995d62a3d9f9e7190c054b49.tar.bz2 hercules-d4a58d24d6bcb23a995d62a3d9f9e7190c054b49.tar.xz hercules-d4a58d24d6bcb23a995d62a3d9f9e7190c054b49.zip |
HPM: mapindex interface
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/instance.c')
-rw-r--r-- | src/map/instance.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/instance.c b/src/map/instance.c index ab68c9e22..924bbfd14 100644 --- a/src/map/instance.c +++ b/src/map/instance.c @@ -157,7 +157,7 @@ int instance_add_map(const char *name, int instance_id, bool usebasename, const return -1; } - if( map_name != NULL && strdb_iget(mapindex_db, map_name) ) { + if( map_name != NULL && strdb_iget(mapindex->db, map_name) ) { ShowError("instance_add_map: trying to create instanced map with existent name '%s'\n", map_name); return -2; } @@ -186,7 +186,7 @@ int instance_add_map(const char *name, int instance_id, bool usebasename, const map->list[im].custom_name = true; } else snprintf(map->list[im].name, MAP_NAME_LENGTH, (usebasename ? "%.3d#%s" : "%.3d%s"), instance_id, name); // Generate Name for Instance Map - map->list[im].index = mapindex_addmap(-1, map->list[im].name); // Add map index + map->list[im].index = mapindex->addmap(-1, map->list[im].name); // Add map index map->list[im].channel = NULL; @@ -419,7 +419,7 @@ void instance_del_map(int16 m) { if( map->list[m].mob_delete_timer != INVALID_TIMER ) timer->delete(map->list[m].mob_delete_timer, map->removemobs_timer); - mapindex_removemap(map_id2index(m)); + mapindex->removemap(map_id2index(m)); // Free memory aFree(map->list[m].cell); |