r5552 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Jan 15 10:24:49 EST 2009


Author: div0
Date: 2009-01-15 10:24:49 -0500 (Thu, 15 Jan 2009)
New Revision: 5552

Modified:
   trunk/data/qcsrc/client/View.qc
Log:
remove some ?: operators as fteqcc hates them


Modified: trunk/data/qcsrc/client/View.qc
===================================================================
--- trunk/data/qcsrc/client/View.qc	2009-01-15 15:09:24 UTC (rev 5551)
+++ trunk/data/qcsrc/client/View.qc	2009-01-15 15:24:49 UTC (rev 5552)
@@ -314,11 +314,14 @@
 		float speed, attenuation;
 		vector new_origin, m;
 
-		speed = ((cvar("camera_free")) ? cvar("camera_speed_free") : cvar("camera_speed_chase"));
+		if(cvar("camera_free"))
+			speed = cvar("camera_speed_free");
+		else
+			speed = cvar("camera_speed_chase");
 			
 		attenuation = cvar("camera_speed_attenuation");
 		
-		attenuation = ((attenuation<1) ? 1 : (1 / attenuation));
+		attenuation = 1 / max(1, attenuation);
 
 		if( cvar("camera_reset") || !camera_mode )
 		{




More information about the nexuiz-commits mailing list