diff options
author | shennetsind <ind@henn.et> | 2013-10-25 12:27:34 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-25 12:27:34 -0200 |
commit | a2405882a4123d6a11d24e895b40148dc7cb455e (patch) | |
tree | d59518bedb632136115dabf218933f73c2e92350 /src/map/map.c | |
parent | bf27a9e0cf1bfe9be298c4191010ba6876457d64 (diff) | |
download | hercules-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.c | 10 |
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) { |