From 1a75df16f31a7b59f2d68bdfd90343717b5d7a60 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 20 Mar 2019 20:10:09 +0100 Subject: [PATCH] Remove a useless sprintf and a space --- qcsrc/client/hud/panel/centerprint.qc | 2 +- qcsrc/lib/oo.qh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/client/hud/panel/centerprint.qc b/qcsrc/client/hud/panel/centerprint.qc index 90a496e0d..3827ff89f 100644 --- a/qcsrc/client/hud/panel/centerprint.qc +++ b/qcsrc/client/hud/panel/centerprint.qc @@ -146,7 +146,7 @@ void HUD_CenterPrint () } else { - centerprint_generic(0, sprintf("Centerprint message", seconds_tostring(time)), 10, 0); + centerprint_generic(0, "Centerprint message", 10, 0); hud_configure_cp_generation_time = time + 10 - random()*3; } } diff --git a/qcsrc/lib/oo.qh b/qcsrc/lib/oo.qh index b91a6d189..9abeb1bcc 100644 --- a/qcsrc/lib/oo.qh +++ b/qcsrc/lib/oo.qh @@ -56,11 +56,11 @@ entity __spawn(string _classname, string _sourceLoc, bool pure) #ifndef QCC_SUPPORT_ENTITYCLASS #define entityclass_2(name, base) USING(name, entity) #define classfield(name) - #define _new(class, pure) __spawn( #class, __FILE__ ":" STR(__LINE__), pure) + #define _new(class, pure) __spawn(#class, __FILE__ ":" STR(__LINE__), pure) #else #define entityclass_2(name, base) entityclass name : base {} #define classfield(name) [[class(name)]] - #define _new(class, pure) ((class) __spawn( #class, __FILE__ ":" STR(__LINE__), pure)) + #define _new(class, pure) ((class) __spawn(#class, __FILE__ ":" STR(__LINE__), pure)) #endif /** entities you care about seeing (.origin works) */ #define new(class) _new(class, false) -- 2.39.2