diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 21:20:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 21:20:05 +0000 |
commit | d846eef0b68474970d7ffe5f1d667d866ddff7a8 (patch) | |
tree | a4f2317ed234736c522ee05672396684eadbc141 /src/economy.cpp | |
parent | cd0b38d234c7aa9f9fbfa32243e6cd66f308484a (diff) | |
download | openttd-d846eef0b68474970d7ffe5f1d667d866ddff7a8.tar.xz |
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index c157b0271..91e0bdfa2 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1856,7 +1856,7 @@ extern int GetAmountOwnedBy(const Company *c, Owner owner); * @param p1 company to buy the shares from * @param p2 unused */ -CommandCost CmdBuyShareInCompany(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text) +CommandCost CmdBuyShareInCompany(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { CommandCost cost(EXPENSES_OTHER); @@ -1901,7 +1901,7 @@ CommandCost CmdBuyShareInCompany(TileIndex tile, uint32 flags, uint32 p1, uint32 * @param p1 company to sell the shares from * @param p2 unused */ -CommandCost CmdSellShareInCompany(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text) +CommandCost CmdSellShareInCompany(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { /* Check if selling shares is allowed (protection against modified clients) */ /* Cannot sell own shares */ @@ -1934,7 +1934,7 @@ CommandCost CmdSellShareInCompany(TileIndex tile, uint32 flags, uint32 p1, uint3 * @param p1 company to buy up * @param p2 unused */ -CommandCost CmdBuyCompany(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text) +CommandCost CmdBuyCompany(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { CompanyID cid = (CompanyID)p1; |