Merge branch 'master' into jgrpp
# Conflicts: # src/lang/czech.txt # src/lang/galician.txt # src/lang/german.txt # src/order_cmd.cpp # src/saveload/afterload.cpp # src/ship.h # src/vehicle.cpp
This commit is contained in:
@@ -1164,14 +1164,10 @@ CommandCost CmdBuildShip(TileIndex tile, DoCommandFlag flags, const Engine *e, u
|
||||
return CommandCost();
|
||||
}
|
||||
|
||||
bool Ship::FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse)
|
||||
ClosestDepot Ship::FindClosestDepot()
|
||||
{
|
||||
const Depot *depot = FindClosestShipDepot(this, 0);
|
||||
if (depot == nullptr) return ClosestDepot();
|
||||
|
||||
if (depot == nullptr) return false;
|
||||
|
||||
if (location != nullptr) *location = depot->xy;
|
||||
if (destination != nullptr) *destination = depot->index;
|
||||
|
||||
return true;
|
||||
return ClosestDepot(depot->xy, depot->index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user