- attempt to see if this fixes units that do not attack when right clicking enemy

This commit is contained in:
Mark Vejvoda
2013-01-23 19:53:12 +00:00
parent 7ecc7325ac
commit 8134da2f12

View File

@@ -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);
}