diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas
index 1f3add5d538fe6837f5ca0d3a942207da171fcb2..e3655bbac9678b575f1653b5d0ac535e26f8b6d0 100644 (file)
--- a/src/game/g_basic.pas
+++ b/src/game/g_basic.pas
function b_Text_Format(S: string): string;
function b_Text_Unformat(S: string): string;
+
+var
+ gmon_dbg_los_enabled: Boolean = true;
+
implementation
uses
Result := True;
*)
- //result := false;
+ result := false;
if g_Map_traceToNearestWall(x1, y1, x2, y2, @wallHitX, @wallHitY) then
begin
// check distance
function g_Look(a, b: PObj; d: TDirection): Boolean;
begin
+ if not gmon_dbg_los_enabled then begin result := false; exit; end; // always "wall hit"
+
if ((b^.X > a^.X) and (d = D_LEFT)) or
((b^.X < a^.X) and (d = D_RIGHT)) then
begin