X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_basic.pas;h=53177473ac59a0c7da0a4f9d264fd60167f80212;hb=c185246bfc49a2ae31fc79ef7c73dc6bcc1073e2;hp=2300b1380fcb892f99c50ba8100f9295daabfc9d;hpb=b79ddd98d923ee15f4bfd1db5111e669fc19964a;p=d2df-sdl.git diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas index 2300b13..5317747 100644 --- a/src/game/g_basic.pas +++ b/src/game/g_basic.pas @@ -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;