shithub: cstory

Download patch

ref: ac498c2be4fd864f9eb2762f09ecbf05d65c9c8d
parent: e2c57e6dbc3a9c0e74557ad9a42f98f20bb9e5a6
author: Gabriel Ravier <gabravier@gmail.com>
date: Sat Sep 14 16:07:35 EDT 2019

After intense debate with Cucky and BLink, ended up changing "PIXELS_TO_UNITS(3) - 1" to "0x5FF"

🙄

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/BossFrog.cpp
+++ b/src/BossFrog.cpp
@@ -574,8 +574,8 @@
 	}
 
 	boss->ym += 0x40;
-	if (boss->ym > (PIXELS_TO_UNITS(3) - 1))
-		boss->ym = (PIXELS_TO_UNITS(3) - 1);
+	if (boss->ym > 0x5FF)
+		boss->ym = 0x5FF;
 
 	boss->x += boss->xm;
 	boss->y += boss->ym;