shithub: cstory

Download patch

ref: a4248b13e2a4541ddf278f8617d2ce727507713e
parent: d1b71b9fce7c975f97816f3982eec3f900644394
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu May 23 10:15:30 EDT 2019

Fix broken stage centring

--- a/src/Frame.cpp
+++ b/src/Frame.cpp
@@ -41,7 +41,7 @@
 		// Widescreen/tallscreen-safe behaviour
 		if (map_w * 0x10 < WINDOW_WIDTH)
 		{
-			gFrame.x = -((WINDOW_WIDTH - map_w * 0x10) * 0x200 / 2);
+			gFrame.x = -(((WINDOW_WIDTH - map_w * 0x10) * 0x200) / 2);
 		}
 		else
 		{
@@ -56,7 +56,7 @@
 
 		if (map_l * 0x10 < WINDOW_HEIGHT)
 		{
-			gFrame.y = -((WINDOW_HEIGHT - map_l * 0x10) * 0x200 / 2);
+			gFrame.y = -(((WINDOW_HEIGHT - map_l * 0x10) * 0x200) / 2);
 		}
 		else
 		{
@@ -148,7 +148,7 @@
 		// Widescreen/tallscreen-safe behaviour
 		if (map_w * 0x10 < WINDOW_WIDTH)
 		{
-			gFrame.x = -((WINDOW_WIDTH - map_w * 0x10) * 0x200 / 2);
+			gFrame.x = -(((WINDOW_WIDTH - map_w * 0x10) * 0x200) / 2);
 		}
 		else
 		{
@@ -161,7 +161,7 @@
 
 		if (map_l * 0x10 < WINDOW_HEIGHT)
 		{
-			gFrame.y = -((WINDOW_HEIGHT - map_l * 0x10) * 0x200 / 2);
+			gFrame.y = -(((WINDOW_HEIGHT - map_l * 0x10) * 0x200) / 2);
 		}
 		else
 		{
@@ -221,7 +221,7 @@
 		// Widescreen/tallscreen-safe behaviour
 		if (map_w * 0x10 < WINDOW_WIDTH)
 		{
-			gFrame.x = -((WINDOW_WIDTH - map_w * 0x10) * 0x200 / 2);
+			gFrame.x = -(((WINDOW_WIDTH - map_w * 0x10) * 0x200) / 2);
 		}
 		else
 		{
@@ -234,7 +234,7 @@
 
 		if (map_l * 0x10 < WINDOW_HEIGHT)
 		{
-			gFrame.y = -((WINDOW_HEIGHT - map_l * 0x10) * 0x200 / 2);
+			gFrame.y = -(((WINDOW_HEIGHT - map_l * 0x10) * 0x200) / 2);
 		}
 		else
 		{