From 73650541967dd88ee839ba004f85fcc31e8dcd97 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Thu, 17 Jun 2010 13:45:39 +0300 Subject: [PATCH] remove the "feature" which made coordinates bigger than "0.5 0.5" negative from lower right corner, not needed anymore now that we have relative coordinates. WARNING: THIS WILL BREAK _ALL_ CONFIGS, PLEASE RE-EXEC hud_wickedhud_default.cfg!!! --- qcsrc/client/hud.qc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 59ac44f85d..95304ee500 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -737,11 +737,6 @@ vector HUD_Panel_GetPos(float id) pos = eX * pos_x * vid_conwidth + eY * pos_y * vid_conheight; - if (pos_x < 0) - pos_x = vid_conwidth + pos_x; - if (pos_y < 0) - pos_y = vid_conheight + pos_y; - if(disable_menu_alphacheck == 2 && id == highlightedPanel) { vector mySize, menu_enable_panelpos; @@ -1025,11 +1020,6 @@ void HUD_Panel_SetPos(float id, vector pos) pos_y = floor(pos_y/cvar("hud_configure_grid_y") + 0.5) * cvar("hud_configure_grid_y"); } - if (pos_x + 0.5 * mySize_x > 0.5 * vid_conwidth) - pos_x = pos_x - vid_conwidth; - if (pos_y + 0.5 * mySize_y > 0.5 * vid_conheight) - pos_y = pos_y - vid_conheight; - string s; s = strcat(ftos(pos_x/vid_conwidth), " ", ftos(pos_y/vid_conheight)); -- 2.39.2