From cdee91b71f6b2c608d16f0f5f574f8f43d631f9a Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Thu, 3 Feb 2000 10:56:46 +0000 Subject: [PATCH] talk sound now happens in UQ again --- common/console.c | 20 ++++++++++---------- uquake/cl_parse.c | 10 ++++++++-- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/common/console.c b/common/console.c index 6f720c2..4e44ef7 100644 --- a/common/console.c +++ b/common/console.c @@ -1,4 +1,5 @@ /* +console.c Copyright (C) 1996-1997 Id Software, Inc. Portions Copyright (C) 1999,2000 Nelson Rush. Copyright (C) 1999,2000 contributors of the QuakeForge project @@ -20,17 +21,16 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// console.c -#include "qtypes.h" -#include "quakedef.h" -#include "console.h" -#include "keys.h" -#include "lib_replace.h" -#include "client.h" -#include "cvar.h" -#include "screen.h" -#include "draw.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include diff --git a/uquake/cl_parse.c b/uquake/cl_parse.c index 075ddd3..7d9e189 100644 --- a/uquake/cl_parse.c +++ b/uquake/cl_parse.c @@ -1,4 +1,5 @@ /* +cl_parse.c - parse a message received from the server Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or @@ -17,9 +18,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// cl_parse.c -- parse a message received from the server -#include "quakedef.h" +#include #include #include #include @@ -601,7 +601,13 @@ void CL_ParseServerMessage (void) Host_EndGame ("Server disconnected\n"); case svc_print: + i = MSG_ReadByte (); + if (i == 1) { + S_LocalSound ("misc/talk.wav"); + con_ormask = 128; + } Con_Printf ("%s", MSG_ReadString ()); + con_ormask = 0; break; case svc_centerprint: