From 93d9ec19ea9e08ad5d888351e1b6ef9de7364050 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 3 Oct 2011 08:19:59 +0200 Subject: [PATCH] fix some obvious bugs --- qcsrc/client/csqc_constants.qc | 2 +- qcsrc/client/hud.qc | 8 ++++---- qcsrc/client/hud_config.qc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qcsrc/client/csqc_constants.qc b/qcsrc/client/csqc_constants.qc index e82f4399b..f6e04e7b3 100644 --- a/qcsrc/client/csqc_constants.qc +++ b/qcsrc/client/csqc_constants.qc @@ -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; diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 7b5ce7cd2..3d3fe93cc 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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; 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; -- 2.39.2