summary refs log tree commit diff
path: root/src/GameTick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GameTick.cpp')
-rw-r--r--src/GameTick.cpp39
1 files changed, 4 insertions, 35 deletions
diff --git a/src/GameTick.cpp b/src/GameTick.cpp
index ce597df..6b28436 100644
--- a/src/GameTick.cpp
+++ b/src/GameTick.cpp
@@ -328,23 +328,11 @@ void 	Game::Tick(){
 	}
 
 	if(!mainmenu){
-
-		
-
-		
-
 		XYZ facing;
-
 		XYZ flatfacing;
 
-		float speed=10;
-
-		
-
 		if(person[1].health<=0||person[0].health<=0||killedinnocent){
-
 			losedelay-=multiplier/6;
-
 		}
 
 		
@@ -530,15 +518,9 @@ void 	Game::Tick(){
 			if(visions==2)visions=0;
 
 			if(visions==0){
-
-				float rad2deg=56.54866776;
-
 				flashamount=1;
-
 				flashr=1;flashg=1;flashb=1;
 
-				
-
 				if(person[0].playercoords.x!=bodycoords.x||person[0].playercoords.z!=bodycoords.z){
 
 					XYZ towards;
@@ -831,20 +813,12 @@ void 	Game::Tick(){
 
 		int beginz,endz;
 
-		int distsquared;
-
 		XYZ collpoint;
 
 		XYZ move;
 
-		float howmuchintersect;
-
 		int whichtri;
 
-		float olddist;
-
-		XYZ nothing;
-
 		XYZ underpoint;
 
 		XYZ overpoint;
@@ -855,8 +829,6 @@ void 	Game::Tick(){
 
 		XYZ normalrotated;
 
-		XYZ pointrotated;
-
 		bool inblock;
 
 		
@@ -4090,11 +4062,11 @@ void 	Game::Tick(){
 
 					//Firing
 
-					XYZ end, aim, oldend;
+					XYZ end, aim;
 
 					HitStruct hitstruct,temphitstruct;
 
-					float olddistance;
+					float olddistance = 0.0f;
 
 					float distance;
 
@@ -4334,7 +4306,7 @@ void 	Game::Tick(){
 
 		//Grenade collision
 
-		int wherex,wherey,whichsound,severwhat;
+		int wherex, wherey, whichsound;
 
 		bool impact;
 
@@ -4514,7 +4486,7 @@ void 	Game::Tick(){
 
 									}else{
 
-										float totalarea;
+										float totalarea = 0.0f;
 
 										alSourcefv(gSourceID[bodywhacksound], AL_POSITION, gLoc);
 
@@ -4887,9 +4859,6 @@ void 	Game::Tick(){
 		
 
 		//3d sound
-
-		ALint tempInt;
-
 		float gLoc[3];
 
 		gLoc[0]=camera.position.x/soundscalefactor;