DEADSOFTWARE

raycast jumper (bad)
[d2df-sdl.git] / src / game / g_monsters.pas
index dcb8dc09b68a6c8afb434b4f4c3cbabcb1e347f7..a52ddf1738be26e9b78ebd1e22cbd34ba76cbc55 100644 (file)
@@ -208,7 +208,7 @@ function g_Mons_getNewTrapFrameId (): DWord;
 type
   TMonsAlongLineCB = function (mon: TMonster; tag: Integer): Boolean is nested;
 
-function g_Mons_alongLine (x0, y0, x1, y1: Integer; cb: TMonsAlongLineCB): TMonster;
+function g_Mons_AlongLine (x0, y0, x1, y1: Integer; cb: TMonsAlongLineCB; log: Boolean=false): TMonster;
 
 
 var
@@ -285,10 +285,10 @@ var
   monsGrid: TMonsterGrid = nil;
 
 
-function g_Mons_alongLine (x0, y0, x1, y1: Integer; cb: TMonsAlongLineCB): TMonster;
+function g_Mons_AlongLine (x0, y0, x1, y1: Integer; cb: TMonsAlongLineCB; log: Boolean=false): TMonster;
 begin
   if not assigned(cb) then begin result := nil; exit; end;
-  result := monsGrid.forEachAlongLine(x0, y0, x1, y1, cb);
+  result := monsGrid.forEachAlongLine(x0, y0, x1, y1, cb, -1, log);
 end;