]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Temporary workaround for assault and race spawnpoints
authorMario <mario@smbclan.net>
Sun, 31 Mar 2019 11:21:34 +0000 (21:21 +1000)
committerMario <mario@smbclan.net>
Sun, 31 Mar 2019 11:21:34 +0000 (21:21 +1000)
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);