From d4becd02df95dafcc0078ed2f0b924f29023feeb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 3 May 2018 23:45:28 +0300 Subject: Update from hercules. --- src/emap/map.c | 5 +++-- src/emap/map.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/emap') 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, diff --git a/src/emap/map.h b/src/emap/map.h index f67f8b2..2d6a25a 100644 --- a/src/emap/map.h +++ b/src/emap/map.h @@ -36,7 +36,7 @@ bool emap_iwall_set_pre(int16 *m, bool *shootable, const char **wall_namePtr); void emap_iwall_get_pre(struct map_session_data **sdPtr); -void emap_iwall_remove_pre(const char **namePtr); +bool emap_iwall_remove_pre(const char **namePtr); bool emap_iwall_set2(int m, int layer, int x1, int y1, -- cgit v1.2.3-60-g2f50