Skip to content

Commit

Permalink
Fix BFG lightramp lerp with variable FPS.
Browse files Browse the repository at this point in the history
Regression since 9e99f37.
  • Loading branch information
skullernet committed Nov 13, 2024
1 parent 66f0777 commit 28163e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/entities.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ static void CL_AddPacketEntities(void)
i = 200;
} else if (cl.csr.extended) {
i = bfg_lightramp[Q_clip(ent.oldframe, 0, 5)] * ent.backlerp +
bfg_lightramp[Q_clip(ent.frame, 0, 5)] * cl.lerpfrac;
bfg_lightramp[Q_clip(ent.frame, 0, 5)] * (1.0f - ent.backlerp);
} else {
i = bfg_lightramp[Q_clip(s1->frame, 0, 5)];
}
Expand Down

0 comments on commit 28163e3

Please sign in to comment.