From 6dd16b99e77eb5edc8c9dd7159b1296dda68e592 Mon Sep 17 00:00:00 2001 From: Shpoike Date: Thu, 29 Jun 2023 16:38:46 +0100 Subject: [PATCH] Don't claim we don't support the sound() flags that we do actually support. --- Quake/pr_cmds.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Quake/pr_cmds.c b/Quake/pr_cmds.c index 29943386..68e1019e 100644 --- a/Quake/pr_cmds.c +++ b/Quake/pr_cmds.c @@ -684,7 +684,10 @@ static void PF_sound (void) if (rate && rate != 1) Con_DPrintf("sound() rate scaling is not supported\n"); - if (flags) +#define SUPPORTED_SERVER_CHANNEL_FLAGS (CF_FORCELOOP|CF_NOSPACIALISE|CF_NOREVERB|CF_FOLLOW|CF_NOREPLACE|CF_SENDVELOCITY|CF_UNICAST|CF_RELIABLE) +#define SERVER_ONLY_CHANNEL_FLAGS (CF_UNICAST|CF_RELIABLE) //stuff that's purely serverside +#define SUPPORTED_CLIENT_CHANNEL_FLAGS (0) //our client is poop. :( + if (flags & ~((SUPPORTED_CLIENT_CHANNEL_FLAGS|SERVER_ONLY_CHANNEL_FLAGS)&SUPPORTED_SERVER_CHANNEL_FLAGS)) Con_DPrintf("sound() flags %#x not supported\n", flags); if (offset) Con_DPrintf("sound() time offsets are not supported\n");