From 0532e2afa2154b25e8736622cebf69ec39e7da1f Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 6 Sep 2019 20:08:07 +0100 Subject: [PATCH 1/2] Shut up a warning --- src/Triangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } From c5a4a3cb4ce1c7215158b254fa599576f86f9a21 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 6 Sep 2019 21:04:40 +0100 Subject: [PATCH 2/2] Future-proof the Windows resource file Now it works with newer versions of Visual Studio --- CSE2.vcproj | 3 +++ assets/resources/afxres.h | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 assets/resources/afxres.h diff --git a/CSE2.vcproj b/CSE2.vcproj index 35ef009c..a74ae0d0 100644 --- a/CSE2.vcproj +++ b/CSE2.vcproj @@ -616,6 +616,9 @@ Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx" UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> + +