From 1f3a31bbc8e0bdd790a7835c682d1603991812dd Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 21 May 2022 09:37:27 +0100 Subject: [PATCH] Allow a Quest running the demo pak to connect to another quest server --- android/app/src/main/cpp/code/q3_ui/ui_servers2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/cpp/code/q3_ui/ui_servers2.c b/android/app/src/main/cpp/code/q3_ui/ui_servers2.c index 29ebde52..c61f4860 100644 --- a/android/app/src/main/cpp/code/q3_ui/ui_servers2.c +++ b/android/app/src/main/cpp/code/q3_ui/ui_servers2.c @@ -702,7 +702,8 @@ static void ArenaServers_Insert( char* adrstr, char* info, int pingtime ) servernodeptr->minPing = atoi( Info_ValueForKey( info, "minPing") ); servernodeptr->maxPing = atoi( Info_ValueForKey( info, "maxPing") ); servernodeptr->bPB = atoi( Info_ValueForKey( info, "punkbuster") ); - servernodeptr->demo = (strcasestr(info, "demo") != NULL); + servernodeptr->demo = (strcasestr(info, "demo") != NULL) || + (strcmp(servernodeptr->hostname, "Quake3Quest") == 0); // Demo can connect to another quest /* s = Info_ValueForKey( info, "nettype" );