From a20d1fb36bcc9f69c8ae86993abef316d424d67d Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 2 Apr 2016 17:21:14 +1100 Subject: [PATCH] dedicated_print: switch from `LOG_INFO` to `print` --- qcsrc/common/util.qc | 7 ------- qcsrc/common/util.qh | 4 ---- qcsrc/server/cl_player.qc | 6 ++++++ 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index 0e6b6d6ba..ec643fcb5 100644 --- a/qcsrc/common/util.qc +++ b/qcsrc/common/util.qc @@ -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) { diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 7bc867533..ed11b04b7 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -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; diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index ed6291cdb..8aaf68cda 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -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: -- 2.39.2