]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Update a link, mark eraseable some debug functions
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index 55d47dbba1dfec6e0d2bb6449ba1ef0665572716..8abf5e743f5c64ab4902481441316ef322fef69e 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);
@@ -1319,12 +1321,14 @@ void respawn(entity this)
        PutClientInServer(this);
 }
 
+ERASEABLE
 void PrintToChat(entity client, string text)
 {
        text = strcat("\{1}^7", text, "\n");
        sprint(client, text);
 }
 
+ERASEABLE
 void DebugPrintToChat(entity client, string text)
 {
        if (autocvar_developer)
@@ -1333,12 +1337,14 @@ void DebugPrintToChat(entity client, string text)
        }
 }
 
+ERASEABLE
 void PrintToChatAll(string text)
 {
        text = strcat("\{1}^7", text, "\n");
        bprint(text);
 }
 
+ERASEABLE
 void DebugPrintToChatAll(string text)
 {
        if (autocvar_developer)
@@ -1347,6 +1353,7 @@ void DebugPrintToChatAll(string text)
        }
 }
 
+ERASEABLE
 void PrintToChatTeam(int team_num, string text)
 {
        text = strcat("\{1}^7", text, "\n");
@@ -1359,6 +1366,7 @@ void PrintToChatTeam(int team_num, string text)
        });
 }
 
+ERASEABLE
 void DebugPrintToChatTeam(int team_num, string text)
 {
        if (autocvar_developer)