r4204 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Aug 26 12:09:22 EDT 2008


Author: div0
Date: 2008-08-26 12:09:22 -0400 (Tue, 26 Aug 2008)
New Revision: 4204

Modified:
   trunk/data/qcsrc/server/g_triggers.qc
Log:
fix misc_laser aiming; do not remove too small snow/rain ents


Modified: trunk/data/qcsrc/server/g_triggers.qc
===================================================================
--- trunk/data/qcsrc/server/g_triggers.qc	2008-08-26 15:53:40 UTC (rev 4203)
+++ trunk/data/qcsrc/server/g_triggers.qc	2008-08-26 16:09:22 UTC (rev 4204)
@@ -620,10 +620,7 @@
 		self.count = 2000;
 	self.count = 0.01 * self.count * (self.size_x / 1024) * (self.size_y / 1024);
 	if (self.count < 1)
-	{
-		remove(self);
-		return;
-	}
+		self.count = 1;
 	if(self.count > 65535)
 		self.count = 65535;
 
@@ -664,10 +661,7 @@
 		self.count = 2000;
 	self.count = 0.01 * self.count * (self.size_x / 1024) * (self.size_y / 1024);
 	if (self.count < 1)
-	{
-		remove(self);
-		return;
-	}
+		self.count = 1;
 	if(self.count > 65535)
 		self.count = 65535;
 
@@ -688,6 +682,7 @@
 	if(self.enemy)
 	{
 		a = vectoangles(self.enemy.origin - self.origin);
+		a_x = -a_x;
 		if(a != self.angles)
 		{
 			self.angles = a;




More information about the nexuiz-commits mailing list