From 23727da96f66d7df800cc5aa70d05abce8002d79 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 18 Jun 2007 21:44:47 +0000 Subject: (svn r10208) -Codechange: replace int32 with Money where appropriate. --- src/misc_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/misc_cmd.cpp') diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index d96689f67..ecbf5d8bf 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -133,7 +133,7 @@ CommandCost CmdIncreaseLoan(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) return_cmd_error(STR_702B_MAXIMUM_PERMITTED_LOAN); } - int32 loan; + Money loan; switch (p2) { default: return CMD_ERROR; // Invalid method case 0: // Take some extra loan @@ -289,7 +289,7 @@ CommandCost CmdMoneyCheat(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (_networking) return CMD_ERROR; #endif SET_EXPENSES_TYPE(EXPENSES_OTHER); - return CommandCost(-(int32)p1); + return CommandCost(-(Money)p1); } /** Transfer funds (money) from one player to another. @@ -304,7 +304,7 @@ CommandCost CmdMoneyCheat(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) CommandCost CmdGiveMoney(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { const Player *p = GetPlayer(_current_player); - CommandCost amount(min((int32)p1, 20000000)); + CommandCost amount((Money)min(p1, 20000000LL)); SET_EXPENSES_TYPE(EXPENSES_OTHER); -- cgit v1.2.3-54-g00ecf