Made more code for Team Arena be inside ifdef MISSIONPACK, from Ensiform.

This commit is contained in:
Zack Middleton 2012-06-18 17:09:33 +00:00
parent a375f898f5
commit 56a918b9ac
6 changed files with 32 additions and 8 deletions

View file

@ -25,6 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// be a valid snapshot this frame
#include "cg_local.h"
#ifdef MISSIONPACK
#include "../../ui/menudef.h"
typedef struct {
@ -46,7 +47,6 @@ static const orderTask_t validOrders[] = {
static const int numValidOrders = ARRAY_LEN(validOrders);
#ifdef MISSIONPACK
static int CG_ValidOrder(const char *p) {
int i;
for (i = 0; i < numValidOrders; i++) {
@ -487,6 +487,8 @@ static void CG_MapRestart( void ) {
trap_Cvar_Set("cg_thirdPerson", "0");
}
#ifdef MISSIONPACK
#define MAX_VOICEFILESIZE 16384
#define MAX_VOICEFILES 8
#define MAX_VOICECHATS 64
@ -940,7 +942,6 @@ CG_VoiceChat
=================
*/
void CG_VoiceChat( int mode ) {
#ifdef MISSIONPACK
const char *cmd;
int clientNum, color;
qboolean voiceOnly;
@ -959,8 +960,8 @@ void CG_VoiceChat( int mode ) {
}
CG_VoiceChatLocal( mode, voiceOnly, clientNum, color, cmd );
#endif
}
#endif
/*
=================
@ -1040,6 +1041,8 @@ static void CG_ServerCommand( void ) {
CG_Printf( "%s\n", text );
return;
}
#ifdef MISSIONPACK
if ( !strcmp( cmd, "vchat" ) ) {
CG_VoiceChat( SAY_ALL );
return;
@ -1054,6 +1057,7 @@ static void CG_ServerCommand( void ) {
CG_VoiceChat( SAY_TELL );
return;
}
#endif
if ( !strcmp( cmd, "scores" ) ) {
CG_ParseScores();