From 2ed334b2becc95452a6bdd58d65a05fcf6be846f Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Wed, 16 Jul 2008 07:15:09 +0000 Subject: [PATCH] fix build without VOIP (David Severwright, bug#3720) --- Makefile | 2 ++ code/client/cl_scrn.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index a2c5f5f1..336b3e79 100644 --- a/Makefile +++ b/Makefile @@ -1356,6 +1356,7 @@ ifeq ($(ARCH),x86) $(B)/client/snapvectora.o endif +ifeq ($(USE_VOIP),1) ifeq ($(USE_INTERNAL_SPEEX),1) Q3OBJ += \ $(B)/client/bits.o \ @@ -1399,6 +1400,7 @@ Q3OBJ += \ $(B)/client/vq.o \ $(B)/client/window.o endif +endif ifeq ($(HAVE_VM_COMPILED),true) diff --git a/code/client/cl_scrn.c b/code/client/cl_scrn.c index ecf47a5e..732913fc 100644 --- a/code/client/cl_scrn.c +++ b/code/client/cl_scrn.c @@ -343,6 +343,7 @@ void SCR_DrawDemoRecording( void ) { } +#ifdef USE_VOIP /* ================= SCR_DrawVoipMeter @@ -381,6 +382,7 @@ void SCR_DrawVoipMeter( void ) { sprintf( string, "VoIP: [%s]", buffer ); SCR_DrawStringExt( 320 - strlen( string ) * 4, 10, 8, string, g_color_table[7], qtrue, qfalse ); } +#endif