r4098 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 10 12:31:25 EDT 2008


Author: div0
Date: 2008-08-10 12:31:25 -0400 (Sun, 10 Aug 2008)
New Revision: 4098

Modified:
   trunk/data/qcsrc/client/Main.qc
Log:
fix laps counter


Modified: trunk/data/qcsrc/client/Main.qc
===================================================================
--- trunk/data/qcsrc/client/Main.qc	2008-08-10 16:07:27 UTC (rev 4097)
+++ trunk/data/qcsrc/client/Main.qc	2008-08-10 16:31:25 UTC (rev 4098)
@@ -609,6 +609,8 @@
 			race_mycheckpointtime = time;
 			race_mycheckpointdelta = ReadShort();
 			race_mycheckpointlapsdelta = ReadByte();
+			if(race_mycheckpointlapsdelta >= 128)
+				race_mycheckpointlapsdelta -= 128;
 			if(race_mycheckpointenemy)
 				strunzone(race_mycheckpointenemy);
 			race_mycheckpointenemy = strzone(ReadString());
@@ -619,6 +621,8 @@
 			race_othercheckpointtime = time;
 			race_othercheckpointdelta = ReadShort();
 			race_othercheckpointlapsdelta = ReadByte();
+			if(race_othercheckpointlapsdelta >= 128)
+				race_othercheckpointlapsdelta -= 128;
 			if(race_othercheckpointenemy)
 				strunzone(race_othercheckpointenemy);
 			race_othercheckpointenemy = strzone(ReadString());




More information about the nexuiz-commits mailing list