shithub: cstory

Download patch

ref: ed242f8d9036a978b363cbfad609b9cd69a63cf0
parent: 989013168ccf0f9a1732a741cf8a6de0f4f2fd2a
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Nov 15 16:03:20 EST 2019

Clean-up Config.cpp

--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -31,7 +31,7 @@
 	fclose(fp);
 
 	// Check if version is not correct, and return if it failed
-	if (fread_result != 1 || strcmp(conf->proof, config_magic) != 0)
+	if (fread_result != 1 || strcmp(conf->proof, config_magic))
 	{
 		memset(conf, 0, sizeof(CONFIG));
 		return FALSE;
@@ -49,7 +49,7 @@
 	// conf->display_mode = 1;
 
 	// Reset joystick settings (as these can't simply be set to 0)
-	conf->bJoystick = 1;
+	conf->bJoystick = TRUE;
 	conf->joystick_button[0] = 2;
 	conf->joystick_button[1] = 1;
 	conf->joystick_button[2] = 5;
--- a/src/Config.h
+++ b/src/Config.h
@@ -10,7 +10,7 @@
 	long attack_button_mode;
 	long ok_button_mode;
 	long display_mode;
-	long bJoystick;
+	BOOL bJoystick;
 	long joystick_button[8];
 };