From ed242f8d9036a978b363cbfad609b9cd69a63cf0 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 15 Nov 2019 21:03:20 +0000 Subject: [PATCH] Clean-up Config.cpp --- src/Config.cpp | 4 ++-- src/Config.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Config.cpp b/src/Config.cpp index 30b14d34..c9d21b10 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -31,7 +31,7 @@ BOOL LoadConfigData(CONFIG *conf) 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 @@ void DefaultConfigData(CONFIG *conf) // 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; diff --git a/src/Config.h b/src/Config.h index fda14622..9a01480a 100644 --- a/src/Config.h +++ b/src/Config.h @@ -10,7 +10,7 @@ struct CONFIG long attack_button_mode; long ok_button_mode; long display_mode; - long bJoystick; + BOOL bJoystick; long joystick_button[8]; };