diff options
author | rubidium <rubidium@openttd.org> | 2007-06-18 10:48:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-18 10:48:15 +0000 |
commit | 966e2738b9c97bb44276ec90ebfa4a202d67d715 (patch) | |
tree | e8ff8f3847b0d29507eeef3450ff752e9b318604 /src/command.cpp | |
parent | f6be61bb3481419a388d9dcdede16c2b5f77c4a2 (diff) | |
download | openttd-966e2738b9c97bb44276ec90ebfa4a202d67d715.tar.xz |
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command.cpp b/src/command.cpp index 2b6946852..210aaadf6 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -17,7 +17,7 @@ const char* _cmd_text = NULL; -#define DEF_COMMAND(yyyy) int32 yyyy(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) +#define DEF_COMMAND(yyyy) CommandCost yyyy(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) DEF_COMMAND(CmdBuildRailroadTrack); DEF_COMMAND(CmdRemoveRailroadTrack); @@ -351,9 +351,9 @@ byte GetCommandFlags(uint cmd) static int _docommand_recursive; -int32 DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) +CommandCost DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) { - int32 res; + CommandCost res; CommandProc *proc; /* Do not even think about executing out-of-bounds tile-commands */ @@ -425,7 +425,7 @@ int32 GetAvailableMoneyForCommand() * the callback is called when the command succeeded or failed. */ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 cmd) { - int32 res = 0, res2; + CommandCost res = 0, res2; CommandProc *proc; uint32 flags; bool notest; |