(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
This commit is contained in:
@@ -228,7 +228,7 @@ static CommandCost TerraformTileHeight(TerraformerState *ts, TileIndex tile, int
|
||||
* @param p2 direction; eg up (non-zero) or down (zero)
|
||||
* @return error or cost of terraforming
|
||||
*/
|
||||
CommandCost CmdTerraformLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text)
|
||||
CommandCost CmdTerraformLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
||||
{
|
||||
_terraform_err_tile = INVALID_TILE;
|
||||
|
||||
@@ -354,7 +354,7 @@ CommandCost CmdTerraformLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2,
|
||||
* @param p2 height difference; eg raise (+1), lower (-1) or level (0)
|
||||
* @return error or cost of terraforming
|
||||
*/
|
||||
CommandCost CmdLevelLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text)
|
||||
CommandCost CmdLevelLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
||||
{
|
||||
if (p1 >= MapSize()) return CMD_ERROR;
|
||||
|
||||
|
Reference in New Issue
Block a user