From 18237d5e29cb091ccfcfcebf179eb0036ca08843 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 7 Apr 2019 19:07:47 +0200 Subject: [PATCH] Update a link, mark eraseable some debug functions --- qcsrc/lib/string.qh | 2 +- qcsrc/server/client.qc | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/qcsrc/lib/string.qh b/qcsrc/lib/string.qh index 96e8a3a27..c4b594d40 100644 --- a/qcsrc/lib/string.qh +++ b/qcsrc/lib/string.qh @@ -297,7 +297,7 @@ int u8_strsize(string s) return l; } -//List of Unicode spaces: https://www.cs.tut.fi/~jkorpela/chars/spaces.html +// List of Unicode spaces: http://jkorpela.fi/chars/spaces.html ERASEABLE bool isInvisibleString(string s) { diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 9ba4feeb1..8abf5e743 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1321,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) @@ -1335,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) @@ -1349,6 +1353,7 @@ void DebugPrintToChatAll(string text) } } +ERASEABLE void PrintToChatTeam(int team_num, string text) { text = strcat("\{1}^7", text, "\n"); @@ -1361,6 +1366,7 @@ void PrintToChatTeam(int team_num, string text) }); } +ERASEABLE void DebugPrintToChatTeam(int team_num, string text) { if (autocvar_developer) -- 2.39.2