]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove a useless sprintf and a space
authorterencehill <piuntn@gmail.com>
Wed, 20 Mar 2019 19:10:09 +0000 (20:10 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 20 Mar 2019 19:10:09 +0000 (20:10 +0100)
qcsrc/client/hud/panel/centerprint.qc
qcsrc/lib/oo.qh

index 90a496e0d175962f8dae41d4f75beec0346010b9..3827ff89fc37c6c598d2680c023ed41f99272537 100644 (file)
@@ -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;
                        }
                }
index b91a6d18988e6fd1083bf89370ea506eb6edb52d..9abeb1bcce330e1e20ede401e5e624c2d0370eae 100644 (file)
@@ -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)