From ec644cf1a42976a0367446e19c12728550a9c173 Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Sat, 10 Aug 2013 13:01:23 +0200 Subject: [PATCH] Fix unused but set variable compilation error under linux. Former-commit-id: 1aa4373e3dce07d1a8331a74a557f56eca574520 --- dlls/cstrike/csx/usermsg.cpp | 12 ++++++------ dlls/dod/dodx/usermsg.cpp | 10 +++++----- dlls/ts/tsx/moduleconfig.cpp | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dlls/cstrike/csx/usermsg.cpp b/dlls/cstrike/csx/usermsg.cpp index 1e9f821c..f8a140c9 100755 --- a/dlls/cstrike/csx/usermsg.cpp +++ b/dlls/cstrike/csx/usermsg.cpp @@ -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; diff --git a/dlls/dod/dodx/usermsg.cpp b/dlls/dod/dodx/usermsg.cpp index 953d3928..b663f33c 100755 --- a/dlls/dod/dodx/usermsg.cpp +++ b/dlls/dod/dodx/usermsg.cpp @@ -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) { diff --git a/dlls/ts/tsx/moduleconfig.cpp b/dlls/ts/tsx/moduleconfig.cpp index 8a6e8f70..6a7f0460 100755 --- a/dlls/ts/tsx/moduleconfig.cpp +++ b/dlls/ts/tsx/moduleconfig.cpp @@ -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;