From 17f511c9e41b73daf62b3a40818fd3f78865de5b Mon Sep 17 00:00:00 2001 From: Gra Date: Tue, 31 Mar 2020 17:24:28 -0700 Subject: [PATCH] Fix plushangup not being recognized. The iwar.conf file that comes with iwar sets two options called "plushangup" and "plushangupsleep". The old version of the code checked for "PlusHangup" and "PlusHangupsleep". This change brings the name of the options in line with the others. You could also modify the provided iwar.conf if you'd prefer. --- src/iwar-engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iwar-engine.c b/src/iwar-engine.c index 39c596f..1cebb18 100644 --- a/src/iwar-engine.c +++ b/src/iwar-engine.c @@ -1113,12 +1113,12 @@ int main(int argc, char **argv) beepflag=true; } - if (!strcmp(iwar_option, "PlusHangup")) + if (!strcmp(iwar_option, "plushangup")) { plushang=true; } - if (!strcmp(iwar_option, "PlusHangupsleep")) + if (!strcmp(iwar_option, "plushangupsleep")) { strlcpy(tmp, iwar_value, sizeof(tmp)); PlusHangupsleep=atoi(tmp);