shithub: cstory

Download patch

ref: 950bf28273a73781df4fab479d97c257d1e5015f
parent: a220732aac832bd9d350103fdafaa26499effd64
parent: c5a4a3cb4ce1c7215158b254fa599576f86f9a21
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Sep 6 17:08:25 EDT 2019

Merge branch 'accurate' into portable

--- /dev/null
+++ b/assets/resources/afxres.h
@@ -1,0 +1,3 @@
+// Quick-and-dirty shim to make CSE2.rc work in newer versions of Visual Studio
+
+#include "winres.h"
--- a/src/Triangle.cpp
+++ b/src/Triangle.cpp
@@ -21,7 +21,7 @@
 	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);
 	}
 }
--