mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Fix broken wrap-around in the double version of BobVal()
.
* My first time actually witnessing this, but was only a problem with GCC...
This commit is contained in:
parent
70b6aa848f
commit
4e8331b16b
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ inline double BobVal(int val)
|
|||
|
||||
inline double BobVal(double val)
|
||||
{
|
||||
return g_sinbam((unsigned)(val * (1 << 21)));
|
||||
return g_sinbam(xs_CRoundToUInt(val * (1 << 21)));
|
||||
}
|
||||
|
||||
#include "updatesector.h"
|
||||
|
|
Loading…
Reference in a new issue