Deleted member 219079
D
Deleted member 219079
My current checking method;
Does some crazy stuff from time to time.
If nobody can spot anything errors from it, I guess the bug lingers somewhere else in my code...
JASS:
private constant function Positive takes real r returns real
if r < 0 then
return -r
endif
return r
endfunction
private function UnitFacingUnit takes unit u, unit u2 returns boolean
return Positive((bj_RADTODEG*Atan2(GetUnitY(u2)-GetUnitY(u),GetUnitX(u2)-GetUnitX(u)))-GetUnitFacing(u))<5.
endfunction
If nobody can spot anything errors from it, I guess the bug lingers somewhere else in my code...