summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 438f611)
raw | patch | inline | side by side (parent: 438f611)
author | Stas'M <x86corez@gmail.com> | |
Fri, 28 Dec 2018 17:51:09 +0000 (20:51 +0300) | ||
committer | Stas'M <x86corez@gmail.com> | |
Fri, 28 Dec 2018 19:14:54 +0000 (22:14 +0300) |
src/game/g_gfx.pas | patch | blob | history |
diff --git a/src/game/g_gfx.pas b/src/game/g_gfx.pas
index 567fb5f5d6e66ff87e9cba272861948e65650cc9..52c885692f6a5b61f994ce3f4942a954c0718043 100644 (file)
--- a/src/game/g_gfx.pas
+++ b/src/game/g_gfx.pas
begin
if ((pan.PanelType and PANEL_LIFTUP) <> 0) then
begin
- if (velY > -4-Random(3)) then velY -= 0.8;
+ if (velY > -1-Random(3)) then velY -= 0.8;
if (abs(velX) > 0.1) then velX -= velX/10.0;
velX += (Random-Random)*0.2;
accelY := 0.15;
end
+ else if ((pan.PanelType and PANEL_LIFTDOWN) <> 0) then
+ begin
+ if (velY < 1+Random(3)) then velY += 0.8;
+ accelY := 0.15;
+ end
else if ((pan.PanelType and PANEL_LIFTLEFT) <> 0) then
begin
if (velX > -8-Random(3)) then velX -= 0.8;