mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 15:11:46 +00:00
- Fixed: Floating point conversion error in SBarInfo DrawBar which broke interpolation.
This commit is contained in:
parent
b8e392eaa5
commit
624c935385
1 changed files with 1 additions and 1 deletions
|
@ -2786,7 +2786,7 @@ class CommandDrawBar : public SBarInfoCommand
|
||||||
// [BL] Since we used a percentage (in order to get the most fluid animation)
|
// [BL] Since we used a percentage (in order to get the most fluid animation)
|
||||||
// we need to establish a cut off point so the last pixel won't hang as the animation slows
|
// we need to establish a cut off point so the last pixel won't hang as the animation slows
|
||||||
if(pixel == -1 && statusBar->Images[foreground])
|
if(pixel == -1 && statusBar->Images[foreground])
|
||||||
pixel = MAX(1., 1./statusBar->Images[foreground]->GetWidth());
|
pixel = MAX(1 / 65536., 1./statusBar->Images[foreground]->GetWidth());
|
||||||
|
|
||||||
if(fabs(drawValue - value) < pixel)
|
if(fabs(drawValue - value) < pixel)
|
||||||
drawValue = value;
|
drawValue = value;
|
||||||
|
|
Loading…
Reference in a new issue