Coverty scan 1308703; Logically dead code
This commit is contained in:
parent
cfa9f38155
commit
c51599f4fe
|
@ -288,15 +288,12 @@ void Gui::mouseDownRightGraphics(int x, int y , bool prepared) {
|
|||
else if(selection.isCommandable()) {
|
||||
if(prepared) {
|
||||
Vec2i targetPos=game->getMouseCellPos();
|
||||
if(prepared || (game->isValidMouseCellPos() &&
|
||||
world->getMap()->isInsideSurface(world->getMap()->toSurfCoords(targetPos)) == true )) {
|
||||
givePreparedDefaultOrders(x, y);
|
||||
}
|
||||
givePreparedDefaultOrders(x, y);
|
||||
}
|
||||
else {
|
||||
Vec2i targetPos=game->getMouseCellPos();
|
||||
if(prepared || (game->isValidMouseCellPos() &&
|
||||
world->getMap()->isInsideSurface(world->getMap()->toSurfCoords(targetPos)) == true)) {
|
||||
if(game->isValidMouseCellPos() &&
|
||||
world->getMap()->isInsideSurface(world->getMap()->toSurfCoords(targetPos)) == true) {
|
||||
giveDefaultOrders(x, y);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue