diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas
index 2300b1380fcb892f99c50ba8100f9295daabfc9d..53177473ac59a0c7da0a4f9d264fd60167f80212 100644 (file)
--- a/src/game/g_basic.pas
+++ b/src/game/g_basic.pas
// `true` if no obstacles
if (g_profile_los) then g_Mons_LOS_Start();
// `true` if no obstacles
if (g_profile_los) then g_Mons_LOS_Start();
- result := not g_Map_traceToNearestWall(x1, y1, x2, y2, @wallHitX, @wallHitY);
+ result := (g_Map_traceToNearestWall(x1, y1, x2, y2, @wallHitX, @wallHitY) = nil);
if (g_profile_los) then g_Mons_LOS_End();
end;
if (g_profile_los) then g_Mons_LOS_End();
end;