From 8134da2f12035f60fed5936a70d572a18a077802 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 23 Jan 2013 19:53:12 +0000 Subject: [PATCH] - attempt to see if this fixes units that do not attack when right clicking enemy --- source/glest_game/gui/gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/gui/gui.cpp b/source/glest_game/gui/gui.cpp index a9d4d701c..4d8d9d7a1 100644 --- a/source/glest_game/gui/gui.cpp +++ b/source/glest_game/gui/gui.cpp @@ -286,7 +286,7 @@ void Gui::mouseDownRightGraphics(int x, int y , bool prepared) { } else { Vec2i targetPos; - if(Renderer::getInstance().computePosition(Vec2i(x, y), targetPos) && + if(Renderer::getInstance().computePosition(Vec2i(x, y), targetPos, true) && world->getMap()->isInsideSurface(world->getMap()->toSurfCoords(targetPos)) == true) { giveDefaultOrders(x, y); }