From e742e8cf1a8356f9b70ab3ad9ecdc1051976ef72 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 7 Apr 2013 18:57:13 -0300 Subject: Fixed zone changing not reverting mapflags from previous zone http://hercules.ws/board/topic/302-introducing-hercules-map-zone-database/ Signed-off-by: shennetsind --- src/map/map.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/map/map.h') diff --git a/src/map/map.h b/src/map/map.h index 6f1a51e9f..dd0a47aaf 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -520,7 +520,10 @@ struct map_zone_data { int mapflags_count; }; void map_zone_init(void); -void map_zone_apply(int m, struct map_zone_data *zone,char* w1, const char* start, const char* buffer, const char* filepath); +void map_zone_remove(int m); +void map_zone_apply(int m, struct map_zone_data *zone, const char* start, const char* buffer, const char* filepath); +void map_zone_change(int m, struct map_zone_data *zone, const char* start, const char* buffer, const char* filepath); +void map_zone_change2(int m, struct map_zone_data *zone); struct map_zone_data map_zone_all;/* used as a base on all maps */ struct map_zone_data map_zone_pk;/* used for (pk_mode) */ @@ -624,6 +627,9 @@ struct map_data { /* Hercules nocast db overhaul */ struct map_zone_data *zone; + char **zone_mf;/* used to store this map's zone mapflags that should be re-applied once zone is removed */ + unsigned short zone_mf_count; + struct map_zone_data *prev_zone; /* Hercules Local Chat */ struct hChSysCh *channel; -- cgit v1.2.3-60-g2f50