From: TimePath Date: Sat, 2 Apr 2016 06:21:14 +0000 (+1100) Subject: dedicated_print: switch from `LOG_INFO` to `print` X-Git-Tag: xonotic-v0.8.2~975 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=a20d1fb36bcc9f69c8ae86993abef316d424d67d dedicated_print: switch from `LOG_INFO` to `print` --- diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index 0e6b6d6ba4..ec643fcb58 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 7bc8675335..ed11b04b74 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 ed6291cdb9..8aaf68cda6 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: