[nexuiz-commits] r8502 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Jan 15 19:43:58 EST 2010
Author: fruitiex
Date: 2010-01-15 19:43:58 -0500 (Fri, 15 Jan 2010)
New Revision: 8502
Modified:
trunk/data/qcsrc/server/race.qc
Log:
fix a silly bug and a typo
Modified: trunk/data/qcsrc/server/race.qc
===================================================================
--- trunk/data/qcsrc/server/race.qc 2010-01-16 00:01:53 UTC (rev 8501)
+++ trunk/data/qcsrc/server/race.qc 2010-01-16 00:43:58 UTC (rev 8502)
@@ -142,7 +142,7 @@
if (grecordtime[i] == 0 || grecordtime[i] > t)
return i+1;
- for (i=RANKINGS_CNT-1;i>=0;--i)
+ for (i=0;i<RANKINGS_CNT;++i)
if (grecordtime[i] > t)
return i+1;
return 0;
@@ -267,7 +267,7 @@
bprint(e.netname, "^2 set the ", race_PlaceName(pos), " ^2place record with ", TIME_ENCODED_TOSTRING(t), "\n");
else {
string recorddifference = strcat(" ^2[-", TIME_ENCODED_TOSTRING(oldrec - t), "]");
- bprint(e.netname, "^2 broke ", oldname, "^2's ", race_PlaceName(pos), " ^2place, record ", strcat(TIME_ENCODED_TOSTRING(oldrec), " ^2with ", TIME_ENCODED_TOSTRING(t), recorddifference, "\n"));
+ bprint(e.netname, "^2 broke ", oldname, "^2's ", race_PlaceName(pos), " ^2place record ", strcat(TIME_ENCODED_TOSTRING(oldrec), " ^2with ", TIME_ENCODED_TOSTRING(t), recorddifference, "\n"));
}
}
More information about the nexuiz-commits
mailing list