r4207 - in trunk/data/qcsrc: client server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Aug 26 12:59:41 EDT 2008


Author: div0
Date: 2008-08-26 12:59:41 -0400 (Tue, 26 Aug 2008)
New Revision: 4207

Modified:
   trunk/data/qcsrc/client/laser.qc
   trunk/data/qcsrc/server/g_triggers.qc
Log:
laser: internally allow changes to origin


Modified: trunk/data/qcsrc/client/laser.qc
===================================================================
--- trunk/data/qcsrc/client/laser.qc	2008-08-26 16:58:22 UTC (rev 4206)
+++ trunk/data/qcsrc/client/laser.qc	2008-08-26 16:59:41 UTC (rev 4207)
@@ -25,6 +25,9 @@
 		self.origin_x = ReadCoord();
 		self.origin_y = ReadCoord();
 		self.origin_z = ReadCoord();
+	}
+	if(f & 8)
+	{
 		self.colormod_x = ReadByte() / 255.0;
 		self.colormod_y = ReadByte() / 255.0;
 		self.colormod_z = ReadByte() / 255.0;

Modified: trunk/data/qcsrc/server/g_triggers.qc
===================================================================
--- trunk/data/qcsrc/server/g_triggers.qc	2008-08-26 16:58:22 UTC (rev 4206)
+++ trunk/data/qcsrc/server/g_triggers.qc	2008-08-26 16:59:41 UTC (rev 4207)
@@ -742,6 +742,9 @@
 		WriteCoord(MSG_ENTITY, self.origin_x);
 		WriteCoord(MSG_ENTITY, self.origin_y);
 		WriteCoord(MSG_ENTITY, self.origin_z);
+	}
+	if(fl & 8)
+	{
 		WriteByte(MSG_ENTITY, self.colormod_x * 255.0);
 		WriteByte(MSG_ENTITY, self.colormod_y * 255.0);
 		WriteByte(MSG_ENTITY, self.colormod_z * 255.0);




More information about the nexuiz-commits mailing list