equal
deleted
inserted
replaced
586 /* FALLTHROUGH */ |
586 /* FALLTHROUGH */ |
587 |
587 |
588 case MP_CLEAR: |
588 case MP_CLEAR: |
589 case MP_TREES: |
589 case MP_TREES: |
590 _current_player = OWNER_WATER; |
590 _current_player = OWNER_WATER; |
591 if (!CmdFailed(DoCommand(target, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR))) { |
591 if (CmdSucceeded(DoCommand(target, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR))) { |
592 MakeShore(target); |
592 MakeShore(target); |
593 MarkTileDirtyByTile(target); |
593 MarkTileDirtyByTile(target); |
594 } |
594 } |
595 break; |
595 break; |
596 |
596 |
601 _current_player = OWNER_WATER; |
601 _current_player = OWNER_WATER; |
602 |
602 |
603 Vehicle *v = FindFloodableVehicleOnTile(target); |
603 Vehicle *v = FindFloodableVehicleOnTile(target); |
604 if (v != NULL) FloodVehicle(v); |
604 if (v != NULL) FloodVehicle(v); |
605 |
605 |
606 if (!CmdFailed(DoCommand(target, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR))) { |
606 if (CmdSucceeded(DoCommand(target, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR))) { |
607 MakeWater(target); |
607 MakeWater(target); |
608 MarkTileDirtyByTile(target); |
608 MarkTileDirtyByTile(target); |
609 } |
609 } |
610 } |
610 } |
611 } |
611 } |