]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
remove the "feature" which made coordinates bigger than "0.5 0.5" negative from lower...
authorFruitieX <rasse@rasse-lappy.localdomain>
Thu, 17 Jun 2010 10:45:39 +0000 (13:45 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Thu, 17 Jun 2010 10:45:39 +0000 (13:45 +0300)
qcsrc/client/hud.qc

index 59ac44f85d75b057776d495309e8c60f47ca911b..95304ee500379d79cd126e19765ad72aecfbda4a 100644 (file)
@@ -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));