X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame%2Fg_player.pas;h=2ec93df11d2f99501fa7ce1176c5076105436ad7;hb=ab6584e462f432b3dd46a91f3a89cab35a0c7243;hp=b8a77bd44fa2f02aab7ce19e624048a1a2533f2f;hpb=c8d7811d45c2d34a7e297613e50570f253a0d8e9;p=d2df-sdl.git diff --git a/src/game/g_player.pas b/src/game/g_player.pas index b8a77bd..2ec93df 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -3542,7 +3542,7 @@ begin // Âûáðîñ êëþ÷åé: if (not (gGameSettings.GameMode in [GM_DM, GM_TDM, GM_CTF])) or - LongBool(gGameSettings.Options and GAME_OPTION_DMKEYS) then + (not LongBool(gGameSettings.Options and GAME_OPTION_DMKEYS)) then begin if R_KEY_RED in FRulez then PushItem(ITEM_KEY_RED); @@ -4827,7 +4827,7 @@ begin 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(); @@ -4836,7 +4836,7 @@ begin 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);