- WHaven: Fix issues with smoothratio.

This commit is contained in:
Mitchell Richters 2020-11-01 07:32:48 +11:00
parent 422d9bfebd
commit 4382ab09b8

View file

@ -8,7 +8,7 @@
BEGIN_WH_NS BEGIN_WH_NS
void drawscreen(int num, int dasmoothratio, bool sceneonly) void drawscreen(int num, double dasmoothratio, bool sceneonly)
{ {
PLAYER& plr = player[num]; PLAYER& plr = player[num];
@ -95,7 +95,7 @@ void GameInterface::Render()
{ {
double const smoothRatio = playrunning() ? I_GetTimeFrac() * MaxSmoothRatio : MaxSmoothRatio; double const smoothRatio = playrunning() ? I_GetTimeFrac() * MaxSmoothRatio : MaxSmoothRatio;
drawscreen(pyrn, FloatToFixed(smoothRatio), false); drawscreen(pyrn, smoothRatio, false);
if (!paused && isWh2() && attacktheme && !Mus_IsPlaying()) if (!paused && isWh2() && attacktheme && !Mus_IsPlaying())
{ {
startsong(krand() % 2); startsong(krand() % 2);