Fix unused but set variable compilation error under linux.

This commit is contained in:
Vincent Herbet 2013-08-10 13:01:23 +02:00
parent 21f39612a8
commit 1aa4373e3d
3 changed files with 13 additions and 13 deletions

View File

@ -20,7 +20,7 @@ void Client_ResetHUD(void* mValue){
void Client_DeathMsg(void *mValue) void Client_DeathMsg(void *mValue)
{ {
static int killer_id; static int killer_id;
static int victim_id; //static int victim_id;
static int is_headshot; static int is_headshot;
const char *name; const char *name;
@ -31,11 +31,11 @@ void Client_DeathMsg(void *mValue)
killer_id = *(int *)mValue; killer_id = *(int *)mValue;
break; break;
} }
case 1: //case 1:
{ // {
victim_id = *(int *)mValue; // victim_id = *(int *)mValue;
break; // break;
} // }
case 2: case 2:
{ {
is_headshot = *(int *)mValue; is_headshot = *(int *)mValue;

View File

@ -291,12 +291,12 @@ void Client_Object(void* mValue)
const char *classname; const char *classname;
edict_t* pObject = NULL; edict_t* pObject = NULL;
const char* value; //const char* value;
if(mValue) //if(mValue)
{ //{
value = (char*)mValue; // value = (char*)mValue;
} //}
if(!mPlayer->object.carrying) if(!mPlayer->object.carrying)
{ {

View File

@ -129,7 +129,7 @@ void check_stunts(edict_s *player)
if(pPlayer->checkstate == 0) return; if(pPlayer->checkstate == 0) return;
int stunttype; /*int stunttype;
int newstate = pPlayer->state; int newstate = pPlayer->state;
int oldstate = pPlayer->oldstate; int oldstate = pPlayer->oldstate;
@ -138,7 +138,7 @@ void check_stunts(edict_s *player)
else if(oldstate == 2) stunttype = STUNT_GETUP; else if(oldstate == 2) stunttype = STUNT_GETUP;
else if( pPlayer->GetOffset(TSX_SROLL_OFFSET) == 1) stunttype = STUNT_ROLL; else if( pPlayer->GetOffset(TSX_SROLL_OFFSET) == 1) stunttype = STUNT_ROLL;
else if( pPlayer->GetOffset(TSX_SDUCK_OFFSET) == 1 ) stunttype = STUNT_DUCK; else if( pPlayer->GetOffset(TSX_SDUCK_OFFSET) == 1 ) stunttype = STUNT_DUCK;
else stunttype = STUNT_FLIP; else stunttype = STUNT_FLIP;*/
pPlayer->checkstate = 0; pPlayer->checkstate = 0;