From 966e2738b9c97bb44276ec90ebfa4a202d67d715 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 18 Jun 2007 10:48:15 +0000 Subject: (svn r10197) -Codechange: replace int32 with CommandCost where appropriate. --- src/command.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/command.cpp') 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; -- cgit v1.2.3-54-g00ecf