[nexuiz-commits] r8746 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Mar 13 11:31:04 EST 2010


Author: div0
Date: 2010-03-13 11:31:03 -0500 (Sat, 13 Mar 2010)
New Revision: 8746

Modified:
   trunk/data/qcsrc/server/t_teleporters.qc
Log:
try to fix map loading of hypergallery

Modified: trunk/data/qcsrc/server/t_teleporters.qc
===================================================================
--- trunk/data/qcsrc/server/t_teleporters.qc	2010-03-10 16:46:48 UTC (rev 8745)
+++ trunk/data/qcsrc/server/t_teleporters.qc	2010-03-13 16:31:03 UTC (rev 8746)
@@ -248,15 +248,18 @@
 	entity e;
 	float n;
 
+	RandomSelection_Init();
 	n = 0;
 	for(e = world; (e = find(e, targetname, self.target)); )
 	{
 		++n;
 		if(e.movetype == MOVETYPE_NONE)
-			waypoint_spawnforteleporter(self, e.origin, 0);
+			RandomSelection_Add(e, 0, string_null, 1, 1);
 		if(e.classname != "info_teleport_destination")
 			print("^3MAPPER ERROR: teleporter does target an invalid teleport destination entity. Angles will not work.\n");
 	}
+	if(RandomSelection_chosen_ent)
+		waypoint_spawnforteleporter(self, RandomSelection_chosen_ent.origin, 0);
 
 	if(n == 0)
 	{



More information about the nexuiz-commits mailing list