Mercurial > hg > openttd
diff src/command.cpp @ 6943:fd42cb9816c6 draft
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 18 Jun 2007 10:48:15 +0000 |
parents | 17319fb8c1c3 |
children | d2846442a133 |
line wrap: on
line diff
--- 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 @@ 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 @@ * 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;