]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud.qc
Merge branch 'master' into mirceakitsune/nex_reticle
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud.qc
index 8b44fdb9bedebe2b5cba4ab7ccb976e1a274bd38..9a8059e84cd4108cf870bd614f1dbbb0bdbcb621 100644 (file)
@@ -1179,19 +1179,6 @@ void HUD_Panel_SetPosSize(float id)
        if(cvar("hud_configure_checkcollisions"))
        {
                mySize = HUD_Panel_CheckResize(id, mySize, resizeorigin);
-
-               // Make sure once more that we DON'T cross the screen edges
-               // left/top screen edges
-               if(myPos_x < 0)
-                       mySize_x = mySize_x + myPos_x;
-               if(myPos_y < 0)
-                       mySize_y = mySize_y + myPos_y;
-
-               // bottom/right screen edges
-               if(myPos_x + mySize_x > vid_conwidth)
-                       mySize_x = vid_conwidth - myPos_x;
-               if(myPos_y + mySize_y > vid_conheight)
-                       mySize_y = vid_conheight - myPos_y;
        }
 
        // minimum panel size cap, do this once more so we NEVER EVER EVER have a panel smaller than this, JUST IN CASE above code still makes the panel eg negative (impossible to resize back without changing cvars manually then)