]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Tiny cleanups
authorterencehill <piuntn@gmail.com>
Wed, 29 Jun 2011 20:02:57 +0000 (22:02 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 29 Jun 2011 20:02:57 +0000 (22:02 +0200)
qcsrc/client/hud.qc

index 5d7ee786a88cb063da507fce58cb2b8aa8502aa3..d6600eec110f0c88aa876f644458bd8c237ec0ac 100644 (file)
@@ -4347,6 +4347,8 @@ void HUD_Physics(void)
                drawstring_aspect(panel_pos + acceleration_offset, strcat(ftos_decimals(acceleration, 2), "g"), panel_size, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
 }
 
+// CenterPrint (#16)
+//
 #define CENTERPRINT_MAX_MSGS 10
 #define CENTERPRINT_MAX_ENTRIES 50
 #define CENTERPRINT_SPACING 0.7
@@ -4438,9 +4440,6 @@ void centerprint(string strMessage)
        centerprint_generic(0, strMessage, autocvar_hud_panel_centerprint_time, 0);
 }
 
-// CenterPrint (#16)
-//
-float hud_configure_cp_generation_time;
 void reset_centerprint_messages(void)
 {
        float i;
@@ -4451,9 +4450,10 @@ void reset_centerprint_messages(void)
                centerprint_msgID[i] = 0;
                if(centerprint_messages[i])
                        strunzone(centerprint_messages[i]);
-               centerprint_messages[i] = strzone("");
+               centerprint_messages[i] = string_null;
        }
 }
+float hud_configure_cp_generation_time;
 void HUD_CenterPrint (void)
 {
        if(!autocvar__hud_configure)