]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
more uninitialized fixes
authorRudolf Polzer <divverent@xonotic.org>
Tue, 18 Dec 2012 11:45:30 +0000 (12:45 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 18 Dec 2012 11:45:30 +0000 (12:45 +0100)
qcsrc/Makefile
qcsrc/client/hud.qc
qcsrc/client/hud_config.qc
qcsrc/client/mapvoting.qc

index d1e9bee8e17579b55217d5f181e9369c05cde74b..2266cc8e64be3e5fe8f885006b7a68251f3f9823 100644 (file)
@@ -6,7 +6,7 @@ QCC ?= fteqcc
 VERSION_MESSAGE = $(shell $(QCC) --version --help)
 ifneq (,$(findstring GMQCC,$(VERSION_MESSAGE)))
 # this is gmqcc
-QCCFLAGS ?= -Werror -Wall -Wno-field-redeclared -Wno-double-declaration -Wno-assign-function-types -Wno-unused-variable -std=fteqcc -O1 -fshort-logic -ftranslatable-strings -flno $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
+QCCFLAGS ?= -Werror -Wall -Wno-field-redeclared -Wno-double-declaration -Wno-assign-function-types -Wno-unused-variable -std=fteqcc -O3 -fshort-logic -ftranslatable-strings -flno $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
 else
 # this. is. fteqccccccccccccccccccc!
 QCCFLAGS ?= -Werror -Wno-Q302 -O3 -Ono-return_only -fno-fastarrays $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
index ee7ff6e8ff93491e6f109d1f19b64b63e0dc096f..d1ec48f6c7ac55b7c350b82c21e8017f031b1dfa 100644 (file)
@@ -948,7 +948,7 @@ void HUD_Ammo(void)
                ammo_size = eX * mySize_x*(1/columns) + eY * mySize_y*(1/rows);
        }
 
-       local noref vector offset; // fteqcc sucks
+       local vector offset = '0 0 0'; // fteqcc sucks
        float newSize;
        if(ammo_size_x/ammo_size_y > 3)
        {
@@ -4550,7 +4550,7 @@ void HUD_Physics(void)
                HUD_Panel_GetProgressBarColor(speed);
                HUD_Panel_DrawProgressBar(panel_pos + speed_offset, panel_size, "progressbar", speed/max_speed, 0, speed_baralign, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
        }
-       vector tmp_offset, tmp_size;
+       vector tmp_offset = '0 0 0', tmp_size;
        if (autocvar_hud_panel_physics_text == 1 || autocvar_hud_panel_physics_text == 2)
        {
                tmp_size_x = panel_size_x * 0.75;
index 6e345476edb02438c14731a708f824b90a3d9e1a..cd45a7dcb7faf48c17a7efb3895334d0a7648ade 100644 (file)
@@ -750,7 +750,7 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary)
                }
                tab_backward = (hudShiftState & S_SHIFT);
 
-               float k, level, start_pos_x;
+               float k, level = 0, start_pos_x;
                vector candidate_pos;
                const float LEVELS_NUM = 4;
                float level_height = vid_conheight / LEVELS_NUM;
index e993a7f5e07e4ed3e8839f2fb13c03f97c1213ea..0a8e6f0b20f6e35b8327faeab886c4c5054f7617 100644 (file)
@@ -52,7 +52,7 @@ vector MapVote_RGB(float id, float count)
 
 void MapVote_DrawMapItem(vector pos, float isize, float tsize, string map, string pic, float count, float id)
 {
-       vector img_size;
+       vector img_size = '0 0 0';
        vector rgb;
        string label;
        float text_size;