DEADSOFTWARE

made projectiles slightly faster in liquids (it rougly matches "original" speed now)
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Fri, 21 Dec 2018 22:55:26 +0000 (00:55 +0200)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Fri, 21 Dec 2018 22:56:35 +0000 (00:56 +0200)
src/game/g_phys.pas

index ce56afefa1612f45ed881936519955d5b3bc7a0e..a2a94cea42376c58a14dccfd0eb57cf9e0f10205 100644 (file)
@@ -472,9 +472,10 @@ begin
       //writeln('velocity=(', Obj^.Vel.X, ',', Obj^.Vel.Y, '); acceleration=(', Obj^.Accel.X, ',', Obj^.Accel.Y, ')');
       if (g_Obj_GetSpeedDirF(Obj, dirx, diry, speed)) then
       begin
-        if (speed > 4) then
+        //writeln('SPEED: ', speed);
+        if (speed > 5) then
         begin
-          speed := speed/2.0;
+          speed := speed/1.4;
           Obj^.Vel.X := round(dirx*speed);
           Obj^.Vel.Y := round(diry*speed);
         end;
@@ -483,9 +484,9 @@ begin
       // acceleration
       if (g_Obj_GetAccelDirF(Obj, dirx, diry, speed)) then
       begin
-        if (speed > 4) then
+        if (speed > 5) then
         begin
-          speed := speed/2.0;
+          speed := speed/1.4;
           Obj^.Accel.X := round(dirx*speed);
           Obj^.Accel.Y := round(diry*speed);
         end;