]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Temporary workaround for assault and race spawnpoints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index 55d47dbba1dfec6e0d2bb6449ba1ef0665572716..9ba4feeb114e3970365204a2d0b0e9e344dfaa37 100644 (file)
@@ -735,10 +735,12 @@ void PutPlayerInServer(entity this)
        });
 
        {
-               //string s = spot.target;
-               //spot.target = string_null;
+               string s = spot.target;
+               if(g_assault || g_race) // TODO: make targeting work in assault & race without this hack
+                       spot.target = string_null;
                SUB_UseTargets(spot, this, NULL);
-               //spot.target = s;
+               if(g_assault || g_race)
+                       spot.target = s;
        }
 
        Unfreeze(this, false);