Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Commit

Permalink
Player: Check Y-acceleration on jump
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymaster committed Jan 9, 2016
1 parent 307b0fc commit 8aa52d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DF Sources/g_player.pas
Expand Up @@ -2537,9 +2537,10 @@ procedure TPlayer.Jump();
FCanJetpack := False;

// Ïðûãàåì èëè âñïëûâàåì:
if CollideLevel(0, 1) or
g_Map_CollidePanel(FObj.X+PLAYER_RECT.X, FObj.Y+PLAYER_RECT.Y+36, PLAYER_RECT.Width,
PLAYER_RECT.Height-33, PANEL_STEP, False) then
if (CollideLevel(0, 1) or
g_Map_CollidePanel(FObj.X+PLAYER_RECT.X, FObj.Y+PLAYER_RECT.Y+36, PLAYER_RECT.Width,
PLAYER_RECT.Height-33, PANEL_STEP, False)
) and (FObj.Accel.Y = 0) then // Íå ïðûãàòü, åñëè åñòü âåðòèêàëüíîå óñêîðåíèå
begin
FObj.Vel.Y := -VEL_JUMP;
FCanJetpack := False;
Expand Down

0 comments on commit 8aa52d7

Please sign in to comment.