(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
This commit is contained in:
@@ -189,7 +189,7 @@ public:
|
||||
c->money = INT64_MAX;
|
||||
CommandCost costclear = DoCommand(tile, 0, 0, DC_NONE, CMD_LANDSCAPE_CLEAR);
|
||||
c->money = old_money;
|
||||
if (CmdSucceeded(costclear)) {
|
||||
if (costclear.Succeeded()) {
|
||||
Money cost = costclear.GetCost();
|
||||
if (cost < 0) {
|
||||
cost = -cost; // Negate negative cost to a positive revenue
|
||||
|
Reference in New Issue
Block a user