mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 03:09:49 +02:00
Coverty scan 1308703; Logically dead code
This commit is contained in:
@@ -288,15 +288,12 @@ void Gui::mouseDownRightGraphics(int x, int y , bool prepared) {
|
|||||||
else if(selection.isCommandable()) {
|
else if(selection.isCommandable()) {
|
||||||
if(prepared) {
|
if(prepared) {
|
||||||
Vec2i targetPos=game->getMouseCellPos();
|
Vec2i targetPos=game->getMouseCellPos();
|
||||||
if(prepared || (game->isValidMouseCellPos() &&
|
givePreparedDefaultOrders(x, y);
|
||||||
world->getMap()->isInsideSurface(world->getMap()->toSurfCoords(targetPos)) == true )) {
|
|
||||||
givePreparedDefaultOrders(x, y);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Vec2i targetPos=game->getMouseCellPos();
|
Vec2i targetPos=game->getMouseCellPos();
|
||||||
if(prepared || (game->isValidMouseCellPos() &&
|
if(game->isValidMouseCellPos() &&
|
||||||
world->getMap()->isInsideSurface(world->getMap()->toSurfCoords(targetPos)) == true)) {
|
world->getMap()->isInsideSurface(world->getMap()->toSurfCoords(targetPos)) == true) {
|
||||||
giveDefaultOrders(x, y);
|
giveDefaultOrders(x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user