Codechange: Use EnumBitSet for DoCommandFlags
This commit is contained in:
@@ -892,10 +892,10 @@ void Ship::SetDestTile(TileIndex tile)
|
||||
* @param[out] ret the vehicle that has been built.
|
||||
* @return the cost of this operation or an error.
|
||||
*/
|
||||
CommandCost CmdBuildShip(DoCommandFlag flags, TileIndex tile, const Engine *e, Vehicle **ret)
|
||||
CommandCost CmdBuildShip(DoCommandFlags flags, TileIndex tile, const Engine *e, Vehicle **ret)
|
||||
{
|
||||
tile = GetShipDepotNorthTile(tile);
|
||||
if (flags & DC_EXEC) {
|
||||
if (flags.Test(DoCommandFlag::Execute)) {
|
||||
int x;
|
||||
int y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user