shithub: cstory

Download patch

ref: d1dc861bc3aaa98f86fa0b45297a3f044cf97486
parent: 0df697d5ee9a8f5f5858cf8a3bc475c31d81206a
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Sep 27 16:08:51 EDT 2020

Another TODO

--- a/src/Ending.cpp
+++ b/src/Ending.cpp
@@ -247,7 +247,6 @@
 
 	// Read data
 	fread(Credit.pData, 1, Credit.size, fp);
-	EncryptionBinaryData2((unsigned char*)Credit.pData, Credit.size);
 
 #ifdef FIX_MAJOR_BUGS
 	// The original game forgot to close the file
@@ -254,6 +253,8 @@
 	fclose(fp);
 #endif
 
+	EncryptionBinaryData2((unsigned char*)Credit.pData, Credit.size);
+
 	// Reset credits
 	Credit.offset = 0;
 	Credit.wait = 0;
@@ -263,7 +264,7 @@
 
 	// Modify cliprect
 	grcGame.left = WINDOW_WIDTH / 2;
-#if WINDOW_WIDTH != 320 || WINDOW_HEIGHT != 240
+#if WINDOW_WIDTH != 320 || WINDOW_HEIGHT != 240 // TODO - Move to CSE2EX
 	// These three are non-vanilla: for wide/tallscreen support
 	grcGame.right = ((WINDOW_WIDTH - 320) / 2) + 320;
 	grcGame.top = (WINDOW_HEIGHT - 240) / 2;