summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c8d7811)
raw | patch | inline | side by side (parent: c8d7811)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Sat, 8 Feb 2020 23:03:03 +0000 (02:03 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Sat, 8 Feb 2020 23:03:03 +0000 (02:03 +0300) |
src/game/g_player.pas | patch | blob | history |
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index b8a77bd44fa2f02aab7ce19e624048a1a2533f2f..6c7006be15f110d75aa1774838a35812e255337e 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
if FDirection = TDirection.D_LEFT then FAngle := ANGLE_LEFTDOWN else FAngle := ANGLE_RIGHTDOWN;
- if FIncCam > -120 then DecMin(FIncCam, 5, -120);
+ if FIncCam > -120.0 * g_dbg_scale then DecMin(FIncCam, 5, Integer(-120.0 * g_dbg_scale));
end;
procedure TPlayer.SeeUp();
if FDirection = TDirection.D_LEFT then FAngle := ANGLE_LEFTUP else FAngle := ANGLE_RIGHTUP;
- if FIncCam < 120 then IncMax(FIncCam, 5, 120);
+ if FIncCam < 120.0 * g_dbg_scale then IncMax(FIncCam, 5, Integer(120.0 * g_dbg_scale));
end;
procedure TPlayer.SetAction(Action: Byte; Force: Boolean = False);