diff --git a/game/Game_local.cpp b/game/Game_local.cpp index 13fd97e6..adcd9283 100644 --- a/game/Game_local.cpp +++ b/game/Game_local.cpp @@ -5142,7 +5142,6 @@ void idGameLocal::SetPersistentTriggerInt( const char *type, const char *var, co void idGameLocal::SavePersistentMoveables(void) { idEntity* ent; idStr tmp,name_str,st,name; - int nt=0; // idVec3 vc; idAngles ag; diff --git a/game/Misc.cpp b/game/Misc.cpp index 14d32eb5..939a560f 100644 --- a/game/Misc.cpp +++ b/game/Misc.cpp @@ -2689,7 +2689,7 @@ void idLiquid::TouchEntities( void ) { //Z.TODO: this is getting messy, maybe sp float b = spawnArgs.GetFloat( "tinyObjectMass" ); float c = spawnArgs.GetFloat( "smallObjectMass" ); float d = spawnArgs.GetFloat( "bigObjectMass" ); - float e = spawnArgs.GetFloat( "largeObjectMass" ); + // float e = spawnArgs.GetFloat( "largeObjectMass" ); if (m <= a ) { maxPrt = 0; diff --git a/game/Player.cpp b/game/Player.cpp index cfd05025..23ed6d4e 100644 --- a/game/Player.cpp +++ b/game/Player.cpp @@ -3575,8 +3575,6 @@ bool idPlayer::GivePowerUp( int powerup, int time ) { } inventory.GivePowerUp( this, powerup, time ); - const idDeclEntityDef *def = NULL; - if ( hud ) { hud->HandleNamedEvent( "itemPickup" ); } diff --git a/game/ai/AI_Veloxite.cpp b/game/ai/AI_Veloxite.cpp index 781f359a..a65fc0b9 100644 --- a/game/ai/AI_Veloxite.cpp +++ b/game/ai/AI_Veloxite.cpp @@ -196,8 +196,6 @@ float idAI_Veloxite::checkSurfaces() { } bool idAI_Veloxite::checkWall() { - int asd=0; - if (( (float) gameLocal.time / 1000 ) < nextWallCheck) { return false; } diff --git a/game/gamesys/SysCmds.cpp b/game/gamesys/SysCmds.cpp index c362e7c0..2ecceaba 100644 --- a/game/gamesys/SysCmds.cpp +++ b/game/gamesys/SysCmds.cpp @@ -358,8 +358,6 @@ void Cmd_ClearPLI_f( const idCmdArgs &args ) { // HEXEN : Zeroth - set up video mode void Cmd_VidRestart_f( const idCmdArgs &args ) { - bool doit=false; - // DG: initialized these variables to appease the compiler int ratio = 0; int width = 0; @@ -367,9 +365,8 @@ void Cmd_VidRestart_f( const idCmdArgs &args ) { int eoc_cvarmode = r_vmode.GetInteger(); - idPlayer *localplayer = gameLocal.GetLocalPlayer(); - /// if you click too fast, doom3 doesnt register that you've unclicked when it resets video. let's try to find the best way to go about this... + //idPlayer *localplayer = gameLocal.GetLocalPlayer(); //float wait=gameLocal.time+500; //while ( gameLocal.time < wait ) { // sys.wait( diff --git a/game/objects/LeafEmitter.cpp b/game/objects/LeafEmitter.cpp index e2098d16..c582aec4 100644 --- a/game/objects/LeafEmitter.cpp +++ b/game/objects/LeafEmitter.cpp @@ -25,9 +25,6 @@ void idEntity_LeafEmitter::Spawn() { void idEntity_LeafEmitter::Think() { if ( ( gameLocal.time / 1000 ) > nextLeaf) { - - float i = gameLocal.random.RandomFloat() * 4; - if (gameLocal.random.RandomInt(1) > 1) { leaf.Set("classname", "object_leaf_lg"); } else { diff --git a/game/physics/Physics_Player.cpp b/game/physics/Physics_Player.cpp index c9daf411..acdd0c1d 100644 --- a/game/physics/Physics_Player.cpp +++ b/game/physics/Physics_Player.cpp @@ -1414,7 +1414,6 @@ void idPhysics_Player::DropTimers( void ) { void idPhysics_Player::EvalGravity( void ) { const int transitions = 8; const float transitionTime = 0.10f; - idVec3 curOrigin = clipModel->GetOrigin(); idVec3 curGrav = gravityVector; float curTime = MS2SEC( gameLocal.realClientTime ); @@ -1423,7 +1422,6 @@ void idPhysics_Player::EvalGravity( void ) { idVec3 gravDir = TransitionToGravity * curTransition + TransitionFromGravity * (transitions-curTransition); gravDir.Normalize(); - idActor * owner=static_cast< idActor * >(masterEntity); if (curTransition == transitions) { SetGravity(TransitionToGravity * gravAmount); diff --git a/game/projectiles/Wraithverge.cpp b/game/projectiles/Wraithverge.cpp index 9f4ff79b..0a000992 100644 --- a/game/projectiles/Wraithverge.cpp +++ b/game/projectiles/Wraithverge.cpp @@ -77,7 +77,7 @@ void idProj_Wraith::Launch( const idVec3 &start, const idVec3 &dir, const idVec3 } void idProj_Wraith::SpawnSubWraiths( int num ) { - idProj_HomingWraith *newWraith = NULL; + //idProj_HomingWraith *newWraith = NULL; idEntity *ent = NULL; idVec3 rnd; idVec3 dir2; @@ -124,7 +124,7 @@ void idProj_Wraith::SpawnSubWraiths( int num ) { if ( !ent ) { return; } - newWraith = static_cast< idProj_HomingWraith* >( ent ); + //newWraith = static_cast< idProj_HomingWraith* >( ent ); } } diff --git a/game/script/Script_Thread.cpp b/game/script/Script_Thread.cpp index c1423c7a..fab03512 100644 --- a/game/script/Script_Thread.cpp +++ b/game/script/Script_Thread.cpp @@ -1966,14 +1966,12 @@ void idThread::Event_GetEntityNumFromName( const idStr entName ) { void idThread::Event_TraceSurfaceNormal( const idVec3 &A, const idVec3 &B, const float clipMask, const idEntity *pass ) { trace_t trace; - idEntity *ent; gameLocal.clip.TracePoint( trace, A, B, MASK_PLAYERSOLID, pass ); // if near a surface if ( trace.fraction < 1.0f ) { - idVec3 bub=trace.c.normal; - ent = gameLocal.GetTraceEntity(trace); + gameLocal.GetTraceEntity(trace); idThread::ReturnVector( trace.c.normal ); }else{