From 56ef23431c51759117dc2bdf768a0b0d1180d4ec Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 28 Oct 2020 01:27:40 +0100 Subject: [PATCH] Remove an extra new line prepended to LOG_INFO messages --- qcsrc/lib/log.qh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/lib/log.qh b/qcsrc/lib/log.qh index 59bb70dd3..317fc8ded 100644 --- a/qcsrc/lib/log.qh +++ b/qcsrc/lib/log.qh @@ -71,9 +71,9 @@ string(string, string...) strcat1n = #115; #define LOG_INFOF(...) _LOG_INFO(sprintf(__VA_ARGS__)) #define _LOG_INFO(s) \ MACRO_BEGIN \ - if (autocvar_developer > 1) dprint(_LOG_HEADER("^5INFO")); \ + if (autocvar_developer > 1) dprint(strcat1n(_LOG_HEADER("^5INFO"), "\n")); \ string __s = s; \ - print("\n^7", __s); \ + print("^7", __s); \ /* TODO: unconditionally add a newline when possible */ \ if (str2chr(__s, strlen(__s) - 1) != '\n') { print("\n"); } \ MACRO_END -- 2.39.2