shithub: cstory

Download patch

ref: d8d789a780436346d5f177b9c70b0714e99055d6
parent: 64adc87f99564cbaa0e05c312ee26e27e7ccb4e7
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Nov 13 17:54:19 EST 2019

Triangle.cpp cleanup

--- a/src/Triangle.cpp
+++ b/src/Triangle.cpp
@@ -5,7 +5,7 @@
 int gSin[0x100];
 short gTan[0x21];
 
-void InitTriangleTable()
+void InitTriangleTable(void)
 {
 	int i;
 	float a;
@@ -39,10 +39,13 @@
 
 unsigned char GetArktan(int x, int y)
 {
+	unsigned char a;
+	short k;
+
 	x *= -1;
 	y *= -1;
-	unsigned char a = 0;
-	short k;
+
+	a = 0;
 
 	if (x > 0)
 	{
--- a/src/Triangle.h
+++ b/src/Triangle.h
@@ -1,6 +1,6 @@
 #pragma once
 
-void InitTriangleTable();
+void InitTriangleTable(void);
 int GetSin(unsigned char deg);
 int GetCos(unsigned char deg);
 unsigned char GetArktan(int x, int y);