From aedb38771a8bb139b46e03a8fe90e521c0a1b1bf Mon Sep 17 00:00:00 2001 From: aleos Date: Wed, 9 Aug 2017 16:19:55 -0400 Subject: [PATCH] Removed a flag check * Removed an unneeded check for finding an empty cell for homunculus. --- src/map/unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/unit.c b/src/map/unit.c index ee9bbe0392..80fab1d095 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -2395,10 +2395,10 @@ int unit_calc_pos(struct block_list *bl, int tx, int ty) ud->to_x = tx; ud->to_y = ty; - map_search_freecell(bl, bl->m, &ud->to_x, &ud->to_y, 3, 3, 1|2|4); + map_search_freecell(bl, bl->m, &ud->to_x, &ud->to_y, 3, 3, 1|2); if (!unit_can_reach_pos(bl, ud->to_x, ud->to_y, 0)) { // Attempt once more - map_search_freecell(bl, bl->m, &ud->to_x, &ud->to_y, 3, 3, 1|2|4); + map_search_freecell(bl, bl->m, &ud->to_x, &ud->to_y, 3, 3, 1|2); if (!unit_can_reach_pos(bl, ud->to_x, ud->to_y, 0)) return 1;