DEADSOFTWARE

Fixed fish movement in acid. Thanks GranMinigun!
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Mon, 17 Dec 2018 11:58:57 +0000 (14:58 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Mon, 17 Dec 2018 11:58:57 +0000 (14:58 +0300)
src/game/g_monsters.pas

index f64850d987b63ac67334ff6b6a78d3118b8cc19f..12488d6e1c69aedad84bdaf0207800bf6a479347 100644 (file)
@@ -2825,7 +2825,7 @@ begin
 
                   // Ðûáà ïëûâåò ââåðõ:
                     if FObj.Vel.Y < 0 then
-                      if not g_Obj_CollideWater(@FObj, 0, -16) then
+                      if not g_Obj_CollideLiquid(@FObj, 0, -16) then
                       begin
                       // Âñïëûëè äî ïîâåðõíîñòè - ñòîï:
                         FObj.Vel.Y := 0;
@@ -3674,7 +3674,7 @@ begin
 
                   // Ðûáà ïëûâåò ââåðõ:
                     if FObj.Vel.Y < 0 then
-                      if not g_Obj_CollideWater(@FObj, 0, -16) then
+                      if not g_Obj_CollideLiquid(@FObj, 0, -16) then
                       begin
                       // Âñïëûëè äî ïîâåðõíîñòè - ñòîï:
                         FObj.Vel.Y := 0;