shithub: cstory

Download patch

ref: 2cb7bfbd3d32106a2c6aaa60b226591b38f0c72f
parent: 751daaf42f11452d47f4ad4477a04e9ac803c8a8
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Sep 9 21:59:26 EDT 2019

Tiny cleanup

--- a/src/Back.cpp
+++ b/src/Back.cpp
@@ -186,7 +186,7 @@
 
 			for (y = y_1; y < y_2; y++)
 			{
-				ypos = (y * 0x20 * 0x200) / 0x200 - fy / 0x200 + gWaterY / 0x200;
+				ypos = (y * 32 * 0x200) / 0x200 - fy / 0x200 + gWaterY / 0x200;
 
 				if (ypos < -32)
 					continue;
@@ -196,7 +196,7 @@
 
 				for (x = x_1; x < x_2; x++)
 				{
-					xpos = (x * 0x20 * 0x200) / 0x200 - fx / 0x200;
+					xpos = (x * 32 * 0x200) / 0x200 - fx / 0x200;
 					PutBitmap3(&grcGame, xpos, ypos, &rcWater[1], SURFACE_ID_LEVEL_BACKGROUND);
 					if (y == 0)
 						PutBitmap3(&grcGame, xpos, ypos, &rcWater[0], SURFACE_ID_LEVEL_BACKGROUND);