mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 05:45:36 +03:00
Fix unused but set variable compilation error under linux.
This commit is contained in:
parent
21f39612a8
commit
1aa4373e3d
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user