DEADSOFTWARE

alot of debugging code
[d2df-sdl.git] / src / game / g_basic.pas
index 2300b1380fcb892f99c50ba8100f9295daabfc9d..53177473ac59a0c7da0a4f9d264fd60167f80212 100644 (file)
@@ -207,7 +207,7 @@ begin
 
   // `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;