Changeset 522 for trunk/LocalPlayer/ClientTools.pas
- Timestamp:
- Jan 7, 2024, 10:24:51 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/ClientTools.pas
r486 r522 100 100 Inc(Loc0, G.lx * 1024); 101 101 Inc(Loc1, G.lx * 1024); 102 dx := abs(((Loc1 mod G.lx * 2 + Loc1 div G.lx and 1) -102 dx := Abs(((Loc1 mod G.lx * 2 + Loc1 div G.lx and 1) - 103 103 (Loc0 mod G.lx * 2 + Loc0 div G.lx and 1) + 3 * G.lx) mod (2 * G.lx) - G.lx); 104 dy := abs(Loc1 div G.lx - Loc0 div G.lx);105 Result := dx + dy + abs(dx - dy) shr 1;104 dy := Abs(Loc1 div G.lx - Loc0 div G.lx); 105 Result := dx + dy + Abs(dx - dy) shr 1; 106 106 end; 107 107 … … 371 371 for dx := -2 to 2 do 372 372 for dy := -2 to 2 do 373 if abs(dx) + abs(dy) = 2 then373 if Abs(dx) + Abs(dy) = 2 then 374 374 if Server(sMoveUnit - sExecute + dx and 7 shl 4 + dy and 375 375 7 shl 7, Me, uix, nil^) >= rExecuted then
Note:
See TracChangeset
for help on using the changeset viewer.