From 3cf706a09c00cf3ceee18a1a26446e3edafdbbec Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 13 Apr 2006 00:45:55 +0000 Subject: - Changed slave chasing from using unit_walktobl to map_search_freecell + unit_walktoxy, since the previous behaviour makes all slaves always end up on the same cell. - Changed some function declarations to take x,y arguments as short rather than int. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6024 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index bfe0f777f..a1a517ec8 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1380,7 +1380,7 @@ static int map_count_sub(struct block_list *bl,va_list ap) * &4 = there shouldn't be any players around the target tile (use the no_spawn_on_player setting) *------------------------------------------ */ -int map_search_freecell(struct block_list *src, int m, int *x,int *y, int rx, int ry, int flag) { +int map_search_freecell(struct block_list *src, int m, short *x,short *y, int rx, int ry, int flag) { int tries, spawn=0; int bx, by; int rx2 = 2*rx+1; -- cgit v1.2.3-70-g09d2