diff --git a/assets/resources/afxres.h b/assets/resources/afxres.h new file mode 100644 index 00000000..285bef97 --- /dev/null +++ b/assets/resources/afxres.h @@ -0,0 +1,3 @@ +// Quick-and-dirty shim to make CSE2.rc work in newer versions of Visual Studio + +#include "winres.h" diff --git a/src/Triangle.cpp b/src/Triangle.cpp index f5e4b9e6..7b7ab500 100644 --- a/src/Triangle.cpp +++ b/src/Triangle.cpp @@ -21,7 +21,7 @@ void InitTriangleTable() for (i = 0; i < 0x21; ++i) { 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); } }