X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_basic.pas;h=53177473ac59a0c7da0a4f9d264fd60167f80212;hb=923fa980434e55419f35422119af2faae2bf68d7;hp=2300b1380fcb892f99c50ba8100f9295daabfc9d;hpb=faef8ad22cbb1b4375647136c9ddca6705a8e21f;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;