r3108 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Jan 5 12:21:32 EST 2008
Author: div0
Date: 2008-01-05 12:21:32 -0500 (Sat, 05 Jan 2008)
New Revision: 3108
Modified:
trunk/data/qcsrc/server/g_world.qc
Log:
better log don't care votes
Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc 2008-01-05 17:12:37 UTC (rev 3107)
+++ trunk/data/qcsrc/server/g_world.qc 2008-01-05 17:21:32 UTC (rev 3108)
@@ -1794,7 +1794,7 @@
result = strcat(":vote:finished:", mapvote_maps[mappos]);
result = strcat(result, ":", ftos(mapvote_votes[mappos]), "::");
- for(i = 0; i < mapvote_count_real; ++i)
+ for(i = 0; i < mapvote_count; ++i)
if(i != mappos)
if(mapvote_maps[i] != "")
{
@@ -1880,15 +1880,18 @@
result = strcat(result, ":", ftos(firstPlaceVotes));
result = strcat(result, ":", mapvote_maps[secondPlace]);
result = strcat(result, ":", ftos(secondPlaceVotes), "::");
- for(i = 0; i < mapvote_count_real; ++i)
+ for(i = 0; i < mapvote_count; ++i)
if(i != firstPlace)
if(i != secondPlace)
if(mapvote_maps[i] != "")
{
result = strcat(result, ":", mapvote_maps[i]);
result = strcat(result, ":", ftos(mapvote_votes[i]));
- strunzone(mapvote_maps[i]);
- mapvote_maps[i] = "";
+ if(i < mapvote_count_real)
+ {
+ strunzone(mapvote_maps[i]);
+ mapvote_maps[i] = "";
+ }
}
GameLogEcho(result, FALSE);
}
More information about the nexuiz-commits
mailing list