From 0cb64ca1fac8cb3d2be336d95871e581044e9126 Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Fri, 14 Jan 2011 01:14:38 +0000 Subject: [PATCH] Selection bugfix? Lets see if this one line fix really fixes it... --- source/glest_game/graphics/renderer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index 340b18a0..b20e88c4 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -3066,6 +3066,8 @@ void Renderer::computeSelected( Selection::UnitContainer &units, if(w<1) w=1; if(h<1) h=1; + //recalculate visibleQuad ( lets see if this fixes the false selection ) + computeVisibleQuad(); //setup matrices glSelectBuffer(Gui::maxSelBuff, selectBuffer); glMatrixMode(GL_PROJECTION);