From: DeaDDooMER Date: Mon, 30 Jul 2018 11:42:32 +0000 (+0300) Subject: Fixed palyer freezing and monster disappearing at y<0 on AMD64/ARM X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=f138453a7ffa899776bdc36b769e0362cbdaf73b;p=d2df-sdl.git Fixed palyer freezing and monster disappearing at y<0 on AMD64/ARM --- diff --git a/src/game/g_phys.pas b/src/game/g_phys.pas index ea245f9..1e543d4 100644 --- a/src/game/g_phys.pas +++ b/src/game/g_phys.pas @@ -392,7 +392,7 @@ begin } // Âûëåòåë çà íèæíþþ ãðàíèöó êàðòû? - if (Obj^.Y > gMapInfo.Height+128) then begin result := MOVE_FALLOUT; Obj.slopeUpLeft := 0; Obj.slopeFramesLeft := 0; exit; end; + if (Obj^.Y > Integer(gMapInfo.Height)+128) then begin result := MOVE_FALLOUT; Obj.slopeUpLeft := 0; Obj.slopeFramesLeft := 0; exit; end; // Ìåíÿåì ñêîðîñòü è óñêîðåíèå òîëüêî ïî ÷åòíûì êàäðàì c := (gTime mod (GAME_TICK*2) <> 0);