From: Ketmar Dark Date: Fri, 21 Dec 2018 22:55:26 +0000 (+0200) Subject: made projectiles slightly faster in liquids (it rougly matches "original" speed now) X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=d9d3a0c332180fea8e937779788bca39fa500025;p=d2df-sdl.git made projectiles slightly faster in liquids (it rougly matches "original" speed now) --- diff --git a/src/game/g_phys.pas b/src/game/g_phys.pas index ce56afe..a2a94ce 100644 --- a/src/game/g_phys.pas +++ b/src/game/g_phys.pas @@ -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;