]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move dedicated_print to miscfunctions (not a client-specific function)
authorMario <mario@smbclan.net>
Mon, 11 Jun 2018 07:50:04 +0000 (17:50 +1000)
committerMario <mario@smbclan.net>
Mon, 11 Jun 2018 07:50:04 +0000 (17:50 +1000)
qcsrc/server/client.qc
qcsrc/server/client.qh
qcsrc/server/miscfunctions.qc
qcsrc/server/miscfunctions.qh

index 7cd2a993297da2ff71748911eca5ca9152b75c6b..003a29abae0696a392acd8a3626757a2624db246 100644 (file)
@@ -1478,11 +1478,6 @@ void respawn(entity this)
        PutClientInServer(this);
 }
 
-void dedicated_print(string input)
-{
-       if (server_is_dedicated) print(input);
-}
-
 void PrintToChat(entity client, string text)
 {
        text = strcat("\{1}^7", text, "\n");
index c8f060d23dda621500cb952c1836858c46090348..b2495c0f6a88d95d0ea4b7d86dcbe73aa7e28b31 100644 (file)
@@ -225,9 +225,6 @@ METHOD(Client, m_unwind, bool(Client this))
     return false;
 }
 
-/** print(), but only print if the server is not local */
-void dedicated_print(string input);
-
 /// \brief Print the string to the client's chat.
 /// \param[in] client Client to print to.
 /// \param[in] text Text to print.
index 1a885f78f0bf3f508b85de78f6fd2a131506dd90..d6d3c63b6f30c148e33b0d04a2449598a4ca2b7b 100644 (file)
@@ -67,6 +67,10 @@ void WarpZone_crosshair_trace(entity pl)
        WarpZone_traceline_antilag(pl, CS(pl).cursor_trace_start, CS(pl).cursor_trace_start + normalize(CS(pl).cursor_trace_endpos - CS(pl).cursor_trace_start) * max_shot_distance, MOVE_NORMAL, pl, ANTILAG_LATENCY(pl));
 }
 
+void dedicated_print(string input)
+{
+       if (server_is_dedicated) print(input);
+}
 
 void GameLogEcho(string s)
 {
index 92707bf39494e9fd964f508fc7894d60d789be41..1455054d2c5cad597ec87e84412d45b74ea6dc00 100644 (file)
@@ -69,6 +69,9 @@ void follow_sameorigin(entity e, entity to);
 
 string formatmessage(entity this, string msg);
 
+/** print(), but only print if the server is not local */
+void dedicated_print(string input);
+
 void GameLogEcho(string s);
 
 void GameLogInit();