X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud_config.qc;h=f26f65ea54b53d3c7a5d8cd564457416d81755d7;hb=8aa33216649215618dd1de7be0f48ca77449bb0c;hp=109a9cf54a239b17e7280f2aa15823c06c3614f6;hpb=6eeab865ebe5dd796bde14c88a1d562114ef20ed;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud_config.qc b/qcsrc/client/hud_config.qc index 109a9cf54..f26f65ea5 100644 --- a/qcsrc/client/hud_config.qc +++ b/qcsrc/client/hud_config.qc @@ -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;