From: terencehill Date: Wed, 20 Mar 2019 19:10:09 +0000 (+0100) Subject: Remove a useless sprintf and a space X-Git-Tag: xonotic-v0.8.5~1572 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a75df16f31a7b59f2d68bdfd90343717b5d7a60;p=xonotic%2Fxonotic-data.pk3dir.git Remove a useless sprintf and a space --- 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)