minor fix

This commit is contained in:
Walter Julius Hennecke 2013-05-17 00:42:09 +02:00
parent 8eec843cbc
commit 555cb0d5cf
4 changed files with 12 additions and 4 deletions

View file

@ -3,13 +3,13 @@
#include "g_local.h"
#include "g_groups.h"
#include "g_main.h"
#include "g_cmds.h"
reconData_t g_reconData[MAX_RECON_NAMES]; //!< recon data for a limited ammount of clients
int g_reconNum;
extern char* BG_RegisterRace( const char *name );
extern void SetPlayerClassCvar(gentity_t *ent);
extern void SetClass( gentity_t *ent, char *s, char *teamName, qboolean SaveToCvar );
extern void BroadcastClassChange( gclient_t *client, pclass_t oldPClass );
//RPG-X: TiM

View file

@ -4,6 +4,7 @@
#include "g_local.h"
#include "g_sql.h"
#include "g_main.h"
#include "g_cmds.h"
//#include <windows.h>
@ -836,7 +837,7 @@ static char* ClassForValueName ( pclass_t pclass ) {
SetClass
=================
*/
qboolean SetClass( gentity_t *ent, char *s, char *teamName, qboolean SaveToCvar ) {
qboolean SetClass( gentity_t *ent, char *s, /*@null@*/ char *teamName, qboolean SaveToCvar ) {
int pclass, oldPClass;
gclient_t *client;
int clientNum;

8
code/game/g_cmds.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef G_CMDS_H
#define G_CMDS_H
#include "g_local.h"
qboolean SetClass( gentity_t *ent, char *s, /*@null@*/ char *teamName, qboolean SaveToCvar );
#endif

View file

@ -5,8 +5,7 @@
#include "g_local.h"
#include "g_breakable.h" //RPG-X | GSIO01 | 09/05/2009: needed by G_Repair
#include "g_main.h"
extern void SetClass( gentity_t *ent, char *s, char *teamName, qboolean SaveToCvar );
#include "g_cmds.h"
/*