summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-25 12:27:34 -0200
committershennetsind <ind@henn.et>2013-10-25 12:27:34 -0200
commita2405882a4123d6a11d24e895b40148dc7cb455e (patch)
treed59518bedb632136115dabf218933f73c2e92350 /src/map/map.c
parentbf27a9e0cf1bfe9be298c4191010ba6876457d64 (diff)
downloadhercules-a2405882a4123d6a11d24e895b40148dc7cb455e.tar.gz
hercules-a2405882a4123d6a11d24e895b40148dc7cb455e.tar.bz2
hercules-a2405882a4123d6a11d24e895b40148dc7cb455e.tar.xz
hercules-a2405882a4123d6a11d24e895b40148dc7cb455e.zip
test
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 412a266fc..81bd732df 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -4398,7 +4398,17 @@ bool map_zone_mf_cache(int m, char *flag, char *params) {
map_zone_mf_cache_add(m,rflag);
}
}
+ } else if (!strcmpi(flag,"nocashshop")) {
+ if( state && map->list[m].flag.nocashshop )
+ ;/* nothing to do */
+ else {
+ if( state )
+ map_zone_mf_cache_add(m,"nocashshop\toff");
+ else if( map->list[m].flag.nocashshop )
+ map_zone_mf_cache_add(m,"nocashshop");
+ }
}
+
return false;
}
void map_zone_apply(int m, struct map_zone_data *zone, const char* start, const char* buffer, const char* filepath) {