summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 00d3260)
raw | patch | inline | side by side (parent: 00d3260)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 22 Aug 2017 18:58:45 +0000 (21:58 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Wed, 23 Aug 2017 18:23:55 +0000 (21:23 +0300) |
src/game/g_grid.pas | patch | blob | history |
diff --git a/src/game/g_grid.pas b/src/game/g_grid.pas
index 579e5f8dbe90e0b2ba781707e90a54727c58555c..9b99c7c976f9bf2f8796cab8b17e330db26ad5ff 100644 (file)
--- a/src/game/g_grid.pas
+++ b/src/game/g_grid.pas
xd, yd: Integer; // current coord
e: Integer; // "error" (as in bresenham algo)
rem: Integer;
- term: Integer;
+ //!term: Integer;
d0, d1: PInteger;
xfixed: Boolean;
temp: Integer;
xd := x0;
yd := y0;
e := 2*dsy-dsx;
- term := x1;
+ //!term := x1;
xfixed := false;
if (y0 < wy0) then
if (rem >= dsx) then begin Inc(yd); e -= dx2; end;
end;
+ (*
if (y1 > wy1) then
begin
// clip at bottom
Inc(term); // draw last point
//if (term = xd) then exit; // this is the only point, get out of here
+ *)
if (sty = -1) then yd := -yd;
- if (stx = -1) then begin xd := -xd; term := -term; end;
- dx2 -= dy2;
+ if (stx = -1) then begin xd := -xd; {!term := -term;} end;
+ //!dx2 -= dy2;
inx := d0^;
iny := d1^;