r4065 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 9 05:11:34 EDT 2008


Author: div0
Date: 2008-08-09 05:11:14 -0400 (Sat, 09 Aug 2008)
New Revision: 4065

Modified:
   trunk/data/qcsrc/server/race.qc
Log:
minor tweaks, fix "could not break 's all-time fastest lap record"


Modified: trunk/data/qcsrc/server/race.qc
===================================================================
--- trunk/data/qcsrc/server/race.qc	2008-08-09 05:59:36 UTC (rev 4064)
+++ trunk/data/qcsrc/server/race.qc	2008-08-09 09:11:14 UTC (rev 4065)
@@ -94,7 +94,10 @@
 				}
 				else
 				{
-					bprint(e.netname, "^7's new fastest lap could not break ", grecordholder, "^7's all-time fastest lap record of ", mmsss(grecordtime), "\n");
+					if(grecordholder == "")
+						bprint(e.netname, "^7's new fastest lap could not break his all-time fastest lap record of ", mmsss(grecordtime), "\n");
+					else
+						bprint(e.netname, "^7's new fastest lap could not break ", grecordholder, "^7's all-time fastest lap record of ", mmsss(grecordtime), "\n");
 				}
 			}
 
@@ -202,8 +205,7 @@
 
 	o = (self.absmin + self.absmax) * 0.5;
 	tracebox(o, PL_MIN, PL_MAX, o - '0 0 1' * (o_z - self.absmin_z), MOVE_NORMAL, self);
-	o = trace_endpos;
-	self.nearestwaypoint = waypoint_spawn(o, o, WAYPOINTFLAG_GENERATED);
+	self.nearestwaypoint = waypoint_spawn(trace_endpos, trace_endpos, WAYPOINTFLAG_GENERATED);
 	self.nearestwaypointtimeout = time + 1000000000;
 
 	if(!self.message)




More information about the nexuiz-commits mailing list