]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix some obvious bugs
authorRudolf Polzer <divverent@xonotic.org>
Mon, 3 Oct 2011 06:19:59 +0000 (08:19 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 3 Oct 2011 06:23:46 +0000 (08:23 +0200)
qcsrc/client/csqc_constants.qc
qcsrc/client/hud.qc
qcsrc/client/hud_config.qc

index e82f4399bdb0ce9921ceabe7bf059ab9ff8673fd..f6e04e7b322e04a87f910c497f0b31a53a167b7b 100644 (file)
@@ -1,4 +1,4 @@
-const entity   NULL                                                    = world;
+#define NULL world
 
 // Mask Constants (set .drawmask on entities; use R_AddEntities to add all entities based on mask)
 const float            MASK_ENGINE                                             = 1;
index 7b5ce7cd22871e7c27af58e2308864ceb93cfef7..3d3fe93cc41ce8ba33a5116c9cde740b1af9c9e3 100644 (file)
@@ -2471,15 +2471,15 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me, float team_count)
        entity tm, pl;
 #define SCOREPANEL_MAX_ENTRIES 6
 #define SCOREPANEL_ASPECTRATIO 2
-       const float entries = bound(1, floor(SCOREPANEL_MAX_ENTRIES * mySize_y/mySize_x * SCOREPANEL_ASPECTRATIO), SCOREPANEL_MAX_ENTRIES);
-       const vector fontsize = '1 1 0' * (mySize_y/entries);
+       float entries = bound(1, floor(SCOREPANEL_MAX_ENTRIES * mySize_y/mySize_x * SCOREPANEL_ASPECTRATIO), SCOREPANEL_MAX_ENTRIES);
+       vector fontsize = '1 1 0' * (mySize_y/entries);
 
        vector rgb, score_color;
        rgb = '1 1 1';
        score_color = '1 1 1';
 
-       const float name_size = mySize_x*0.75;
-       const float spacing_size = mySize_x*0.04;
+       float name_size = mySize_x*0.75;
+       float spacing_size = mySize_x*0.04;
        const float highlight_alpha = 0.2;
        float i, me_printed, first_pl;
        string s;
index 109a9cf54a239b17e7280f2aa15823c06c3614f6..f26f65ea54b53d3c7a5d8cd564457416d81755d7 100644 (file)
@@ -680,7 +680,7 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary)
                float k, level, start_pos_x;
                vector candidate_pos;
                const float LEVELS_NUM = 4;
-               const float level_height = vid_conheight / LEVELS_NUM;
+               float level_height = vid_conheight / LEVELS_NUM;
 :find_tab_panel
                level = floor(tab_panel_pos_y / level_height) * level_height; //starting level
                candidate_pos_x = (!tab_backward) ? vid_conwidth : 0;