Fix unused but set variable compilation error under linux.

Former-commit-id: 1aa4373e3dce07d1a8331a74a557f56eca574520
This commit is contained in:
Vincent Herbet 2013-08-10 13:01:23 +02:00
parent b5572520c2
commit ec644cf1a4
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)
{
static int killer_id;
static int victim_id;
//static int victim_id;
static int is_headshot;
const char *name;
@ -31,11 +31,11 @@ void Client_DeathMsg(void *mValue)
killer_id = *(int *)mValue;
break;
}
case 1:
{
victim_id = *(int *)mValue;
break;
}
//case 1:
// {
// victim_id = *(int *)mValue;
// break;
// }
case 2:
{
is_headshot = *(int *)mValue;

View File

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

View File

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