]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
dedicated_print: switch from `LOG_INFO` to `print`
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 2 Apr 2016 06:21:14 +0000 (17:21 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 2 Apr 2016 06:21:14 +0000 (17:21 +1100)
qcsrc/common/util.qc
qcsrc/common/util.qh
qcsrc/server/cl_player.qc

index 0e6b6d6ba44e2e409f13c37e9789ebb0e2be9f7b..ec643fcb5885cac7d20ccd0cfe0cf16b93b6ea80 100644 (file)
@@ -1480,13 +1480,6 @@ vector animfixfps(entity e, vector a, vector b)
 }
 #endif
 
-#ifdef SVQC
-void dedicated_print(string input) // print(), but only print if the server is not local
-{
-       if(server_is_dedicated) { LOG_INFO(input); }
-}
-#endif
-
 #ifndef MENUQC
 Notification Announcer_PickNumber(int type, int num)
 {
index 7bc8675335958fef698d3c06692b63a0eb7edb86..ed11b04b74b4774891daedc7f5eaaf0276daa0d6 100644 (file)
@@ -273,10 +273,6 @@ string CCR(string input);
 vector animfixfps(entity e, vector a, vector b);
 #endif
 
-#ifdef SVQC
-void dedicated_print(string input);
-#endif
-
 #ifndef MENUQC
 const float CNT_NORMAL = 1;
 const float CNT_GAMESTART = 2;
index ed6291cdb92521024c9d5966380ff84f871061eb..8aaf68cda69dac1753364cfe1e84cd07c10129c3 100644 (file)
@@ -657,6 +657,12 @@ void MoveToTeam(entity client, int team_colour, int type)
        LogTeamchange(client.playerid, client.team, type);
 }
 
+/** print(), but only print if the server is not local */
+void dedicated_print(string input)
+{
+       if (server_is_dedicated) print(input);
+}
+
 /**
  * message "": do not say, just test flood control
  * return value: