From 7350b88bf2bd2c8fbb579fa6e21f6e341df44b49 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 30 Sep 2007 17:38:42 +0000 Subject: (svn r11188) -Codechange: rewrite of the town action related code (remove some of the magic). -Feature: possibility to disable exclusive rights and giving money. Both by skidd13. --- src/misc_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/misc_cmd.cpp') diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index 830354c53..45e8f99c6 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -341,6 +341,8 @@ CommandCost CmdMoneyCheat(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) */ CommandCost CmdGiveMoney(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { + if (!_patches.give_money) return CMD_ERROR; + const Player *p = GetPlayer(_current_player); CommandCost amount(min((Money)p1, (Money)20000000LL)); -- cgit v1.2.3-54-g00ecf