r3292 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Jan 27 12:49:37 EST 2008
Author: div0
Date: 2008-01-27 12:49:37 -0500 (Sun, 27 Jan 2008)
New Revision: 3292
Modified:
trunk/data/qcsrc/server/cl_client.qc
Log:
fix spawnpoint selection again
Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc 2008-01-26 22:54:40 UTC (rev 3291)
+++ trunk/data/qcsrc/server/cl_client.qc 2008-01-27 17:49:37 UTC (rev 3292)
@@ -164,9 +164,10 @@
firstspot = findchain(classname, "info_player_deathmatch");
// filter out the bad ones
// (note this returns the original list if none survived)
- firstspot = Spawn_FilterOutBadSpots(firstspot, playerlist, 100, teamcheck);
- if(!firstspot)
- firstspot = Spawn_FilterOutBadSpots(firstspot, playerlist, -1, teamcheck);
+ firstspot_new = Spawn_FilterOutBadSpots(firstspot, playerlist, 100, teamcheck);
+ if(!firstspot_new)
+ firstspot_new = Spawn_FilterOutBadSpots(firstspot, playerlist, -1, teamcheck);
+ firstspot = firstspot_new;
// there is 50/50 chance of choosing a random spot or the furthest spot
// (this means that roughly every other spawn will be furthest, so you
More information about the nexuiz-commits
mailing list