about summary refs log tree commit diff
path: root/src/game/client/components/debughud.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-29 05:34:18 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-29 05:34:18 +0000
commit0511e1152a13ad99b51a819a75ef457404e86d4c (patch)
treed8e31b98f18f7e027ee72a9792248072d93e5852 /src/game/client/components/debughud.cpp
parentb22dd1488cdae53d27215fda051fea9bfc72ac1d (diff)
downloadzcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.tar.gz
zcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.zip
added sound component
Diffstat (limited to 'src/game/client/components/debughud.cpp')
-rw-r--r--src/game/client/components/debughud.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/client/components/debughud.cpp b/src/game/client/components/debughud.cpp
index 7ec7b88f..0c8b0b91 100644
--- a/src/game/client/components/debughud.cpp
+++ b/src/game/client/components/debughud.cpp
@@ -31,7 +31,7 @@ void DEBUGHUD::render_netcorrections()
 
 	float velspeed = length(vec2(gameclient.snap.local_character->vx/256.0f, gameclient.snap.local_character->vy/256.0f))*50;
 	
-	float ramp = velocity_ramp(velspeed, tuning.velramp_start, tuning.velramp_range, tuning.velramp_curvature);
+	float ramp = velocity_ramp(velspeed, gameclient.tuning.velramp_start, gameclient.tuning.velramp_range, gameclient.tuning.velramp_curvature);
 	
 	char buf[512];
 	str_format(buf, sizeof(buf), "%.0f\n%.0f\n%.2f\n%d %s\n%d %d",
@@ -59,7 +59,7 @@ void DEBUGHUD::render_tuning()
 	{
 		char buf[128];
 		float current, standard;
-		tuning.get(i, &current);
+		gameclient.tuning.get(i, &current);
 		standard_tuning.get(i, &standard);
 		
 		if(standard == current)
@@ -96,7 +96,7 @@ void DEBUGHUD::render_tuning()
 	for(int i = 0; i < 100; i++)
 	{
 		float speed = i/100.0f * 3000;
-		float ramp = velocity_ramp(speed, tuning.velramp_start, tuning.velramp_range, tuning.velramp_curvature);
+		float ramp = velocity_ramp(speed, gameclient.tuning.velramp_start, gameclient.tuning.velramp_range, gameclient.tuning.velramp_curvature);
 		float rampedspeed = (speed * ramp)/1000.0f;
 		gfx_lines_draw((i-1)*2, y+height-pv*height, i*2, y+height-rampedspeed*height);
 		//gfx_lines_draw((i-1)*2, 200, i*2, 200);