Originally posted by [b]mkbu95[/b]
Blame xantara (http://sourceforge.net/apps/trac/rathena/changeset/16636)
buildin_areawarp_sub was modified but he forgot to change it on mapwarp.
So, to fix that:
Find this function on src/map/script.c:[code]BUILDIN_FUNC(mapwarp)[/code]
Then, find this line:[code]map_foreachinmap(buildin_areawarp_sub,m,BL_PC,index,x,y);[/code]
Change to:[code]map_foreachinmap(buildin_areawarp_sub, m, BL_PC, index, x, y, 0, 0);[/code]
Now x3=0 and y3=0. Before it was undefined, causing the random warp bug.