Skip to content

Commit 765b391

Browse files
authored
Fix double sound prediction in rare cases with hook attach (ddnet#11685)
2 parents f93c059 + 8e11338 commit 765b391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/game/client/gameclient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,8 +2626,6 @@ void CGameClient::OnPredict()
26262626

26272627
m_PredictedWorld.Tick();
26282628

2629-
HandlePredictedEvents(Tick);
2630-
26312629
// fetch the current characters
26322630
if(Tick == PredictionTick)
26332631
{
@@ -2689,6 +2687,8 @@ void CGameClient::OnPredict()
26892687
if(Events & COREEVENT_AIR_JUMP)
26902688
m_Effects.AirJump(Pos, 1.0f, 1.0f);
26912689
}
2690+
2691+
HandlePredictedEvents(Tick);
26922692
}
26932693

26942694
// detect mispredictions of other players and make corrections smoother when possible

0 commit comments

Comments
 (0)