summaryrefslogtreecommitdiff
path: root/src/emap/map.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-03 23:45:28 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-03 23:45:28 +0300
commitd4becd02df95dafcc0078ed2f0b924f29023feeb (patch)
tree8c9dcf4e1f45e4c0c4e76039aa3cf62e725729d0 /src/emap/map.c
parent82b22caa7a2c58777dd3daa8f4365a71754b0b04 (diff)
downloadevol-hercules-d4becd02df95dafcc0078ed2f0b924f29023feeb.tar.gz
evol-hercules-d4becd02df95dafcc0078ed2f0b924f29023feeb.tar.bz2
evol-hercules-d4becd02df95dafcc0078ed2f0b924f29023feeb.tar.xz
evol-hercules-d4becd02df95dafcc0078ed2f0b924f29023feeb.zip
Update from hercules.
Diffstat (limited to 'src/emap/map.c')
-rw-r--r--src/emap/map.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emap/map.c b/src/emap/map.c
index 1fc0132..cc4bae4 100644
--- a/src/emap/map.c
+++ b/src/emap/map.c
@@ -463,7 +463,7 @@ void emap_iwall_get_pre(struct map_session_data **sdPtr)
hookStop();
}
-void emap_iwall_remove_pre(const char **namePtr)
+bool emap_iwall_remove_pre(const char **namePtr)
{
struct WallData *wall;
const char *name = *namePtr;
@@ -471,7 +471,7 @@ void emap_iwall_remove_pre(const char **namePtr)
if ((wall = (struct WallData *)strdb_get(map->iwall_db, name)) == NULL)
{
hookStop();
- return; // Nothing to do
+ return false; // Nothing to do
}
int x;
@@ -496,6 +496,7 @@ void emap_iwall_remove_pre(const char **namePtr)
map->list[wall->m].iwall_num--;
strdb_remove(map->iwall_db, wall->name);
hookStop();
+ return true;
}
bool emap_iwall_set2(int m,