From a5dfa782a43bb92d21c2efba440bd1508737d32c Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Wed, 26 Nov 2025 17:24:34 +1300 Subject: [PATCH] RestoreOptions matching --- src/DETHRACE/common/loading.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/DETHRACE/common/loading.c b/src/DETHRACE/common/loading.c index 8f053b1c..78c396ab 100644 --- a/src/DETHRACE/common/loading.c +++ b/src/DETHRACE/common/loading.c @@ -3853,7 +3853,10 @@ int RestoreOptions(void) { gProgram_state.music_volume = (int)arg; } else if (!strcmp(token, "KeyMapIndex")) { gKey_map_index = (int)arg; - } else if (!strcmp(token, "Joystick_min1x")) { + } +#ifdef __DOS__ + // this code only exists in the DOS build + else if (!strcmp(token, "Joystick_min1x")) { gJoystick_min1x = (int)arg; } else if (!strcmp(token, "Joystick_min1y")) { gJoystick_min1y = (int)arg; @@ -3869,7 +3872,9 @@ int RestoreOptions(void) { gJoystick_range2x = (int)arg; } else if (!strcmp(token, "Joystick_range2y")) { gJoystick_range2y = (int)arg; - } else if (!strcmp(token, "NetName")) { + } +#endif + else if (!strcmp(token, "NetName")) { fgets(line, 80, f); s = strtok(line, "\n\r"); strcpy(gNet_player_name, s);