mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
- attempt to see if this fixes units that do not attack when right clicking enemy
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user