- Joined
- Nov 4, 2007
- Messages
- 337
Changed;
JASS:
private function SetUnitXY takes unit u, real x, real y returns boolean
if (x < minx or x > maxx or y < miny or y > maxy ) then
return false
endif
//! CHECK IF LOC IS NOT BLOCKED
call SetUnitX(Dummy,x)
call SetUnitY(Dummy,y)
if ( GetUnitX(Dummy) != x or GetUnitY(Dummy) != y ) then
return false
endif
call SetUnitX(u,x)
call SetUnitY(u,y)
return true
endfunction