r3970 - in trunk/data/qcsrc: client server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jul 29 02:40:02 EDT 2008


Author: div0
Date: 2008-07-29 02:40:02 -0400 (Tue, 29 Jul 2008)
New Revision: 3970

Modified:
   trunk/data/qcsrc/client/mapvoting.qc
   trunk/data/qcsrc/server/g_world.qc
Log:
fix map vote time sync issues... ARGH



Modified: trunk/data/qcsrc/client/mapvoting.qc
===================================================================
--- trunk/data/qcsrc/client/mapvoting.qc	2008-07-29 06:07:45 UTC (rev 3969)
+++ trunk/data/qcsrc/client/mapvoting.qc	2008-07-29 06:40:02 UTC (rev 3970)
@@ -267,7 +267,7 @@
 	mv_detail = ReadByte();
 
 	mv_ownvote = -1;
-	mv_timeout = time + ReadByte();
+	mv_timeout = ReadCoord();
 
 	if(mv_num_maps <= 8)
 		m = ReadByte();

Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc	2008-07-29 06:07:45 UTC (rev 3969)
+++ trunk/data/qcsrc/server/g_world.qc	2008-07-29 06:40:02 UTC (rev 3970)
@@ -1853,7 +1853,7 @@
   	WriteByte(targ, mapvote_count);
   	WriteByte(targ, mapvote_abstain);
   	WriteByte(targ, mapvote_detail);
-	WriteByte(targ, mapvote_timeout - time);
+	WriteCoord(targ, mapvote_timeout);
  	if(mapvote_count <= 8)
  		WriteByte(targ, MapVote_GetMapMask());
  	else




More information about the nexuiz-commits mailing list