Merge branch 'accurate' into portable

This commit is contained in:
Clownacy 2019-09-06 21:08:25 +01:00
commit 950bf28273
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
// Quick-and-dirty shim to make CSE2.rc work in newer versions of Visual Studio
#include "winres.h"

View file

@ -21,7 +21,7 @@ void InitTriangleTable()
for (i = 0; i < 0x21; ++i) for (i = 0; i < 0x21; ++i)
{ {
a = (float)(i * 6.2831855f / 256.0f); a = (float)(i * 6.2831855f / 256.0f);
b = sin(a) / cos(a); b = (float)sin(a) / (float)cos(a);
gTan[i] = (short)(b * 8192.0f); gTan[i] = (short)(b * 8192.0f);
} }
} }