From c34b9cdaeea8524a8d5bf90529f2b67ec0385551 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 3 Feb 2019 00:22:14 +0000 Subject: [PATCH] fix(monitor): correct quakeworld query --- lgsm/functions/query_gamedig.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/query_gamedig.sh b/lgsm/functions/query_gamedig.sh index 8fa8d1b45..affef935c 100644 --- a/lgsm/functions/query_gamedig.sh +++ b/lgsm/functions/query_gamedig.sh @@ -30,6 +30,14 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ]; fi done + local engine_query_array=( quake ) + for engine_query in "${engine_query_array[@]}" + do + if [ "${engine_query}" == "${engine}" ]; then + gamedigengine="protocol-quake1" + fi + done + local engine_query_array=( idtech2 iw2.0 ) for engine_query in "${engine_query_array[@]}" do @@ -38,7 +46,7 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ]; fi done - local engine_query_array=( idtech3 quake iw3.0 ) + local engine_query_array=( idtech3 iw3.0 ) for engine_query in "${engine_query_array[@]}" do if [ "${engine_query}" == "${engine}" ]; then