From c52812664e563190db5e2c377a9db4334c255e12 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 19 Apr 2020 22:37:37 +0100 Subject: [PATCH] Fix bosses flicking across the screen when hurt The Wii U's wacky PowerPC architecture highlighted a cool platform-dependency: the boss rendering code only properly works on platforms where `char` is signed by default. Granted, it's possible Pixel explicitly marked this variable as signed. Who knows. Either way, CSE2 didn't, and now that's been fixed. --- src/Boss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Boss.cpp b/src/Boss.cpp index 32abed07..365ec440 100644 --- a/src/Boss.cpp +++ b/src/Boss.cpp @@ -35,7 +35,7 @@ void InitBossChar(int code) void PutBossChar(int fx, int fy) { - char a = 0; + signed char a = 0; int b; int side;