From 5d0dd2ef8fbc381f20c414835247666d82fb3b63 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 28 Jul 2022 02:17:11 +0000 Subject: [PATCH] Make sure infokey(ent,"protocol") reports something unique for qex-protocol clients. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6292 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/pr_cmds.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/engine/server/pr_cmds.c b/engine/server/pr_cmds.c index f5e561e50..37052d75a 100644 --- a/engine/server/pr_cmds.c +++ b/engine/server/pr_cmds.c @@ -6487,16 +6487,26 @@ char *PF_infokey_Internal (int entnum, const char *key) value = "quake3"; //can actually happen. break; case SCP_NETQUAKE: - value = "quake"; + if (controller->qex) + value = "qex15"; + else + value = "quake"; break; case SCP_BJP3: value = "bjp3"; break; case SCP_FITZ666: - if (controller->netchan.netprim.coordtype != COORDTYPE_FIXED_13_3) - value = "rmq999"; + if (controller->qex) + { + if (controller->netchan.netprim.coordtype != COORDTYPE_FIXED_13_3) + value = "qex999"; + else + value = "qex666"; + } + else if (controller->netchan.netprim.coordtype != COORDTYPE_FIXED_13_3) + value = controller->fteprotocolextensions2?"rmq999+fte2":"rmq999"; else - value = "fitz666"; + value = controller->fteprotocolextensions2?"fitz666+fte2":"fitz666"; break; case SCP_DARKPLACES6: value = "dpp6";