diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas
index a5790239f616380501b8e33b29ce7a19d0d7954d..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
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