X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_phys.pas;h=9d93a5b560ec059d0dc6e5d984103f66acf88d57;hb=36689adbefc512dc228ccdc28b615246e1b24609;hp=ce56afefa1612f45ed881936519955d5b3bc7a0e;hpb=6560a7fbc09aaefc7dea42de78d4336bbb42b532;p=d2df-sdl.git diff --git a/src/game/g_phys.pas b/src/game/g_phys.pas index ce56afe..9d93a5b 100644 --- a/src/game/g_phys.pas +++ b/src/game/g_phys.pas @@ -2,8 +2,7 @@ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -472,9 +471,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 +483,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;