diff options
author | alberth <alberth@openttd.org> | 2009-10-31 19:46:51 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-10-31 19:46:51 +0000 |
commit | 44aacfc59f06106acc492dda7b514db5c7f082ca (patch) | |
tree | c1502b47e5712f3dbe7b0542e88312bec676751e /src/command.cpp | |
parent | 4ce1f5f0a0af73f618a1116b9e4cc25035caead5 (diff) | |
download | openttd-44aacfc59f06106acc492dda7b514db5c7f082ca.tar.xz |
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command.cpp b/src/command.cpp index 00e1d32d1..8cc6ad77c 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -535,7 +535,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac * The server will ditch any server commands a client sends to it, so effectively * this guards the server from executing functions for an invalid company. */ if (_game_mode == GM_NORMAL && (cmd_flags & (CMD_SPECTATOR | CMD_SERVER)) == 0 && !Company::IsValidID(_current_company)) { - if (my_cmd) ShowErrorMessage(_error_message, error_part1, x, y); + if (my_cmd) ShowErrorMessage(error_part1, _error_message, x, y); return false; } @@ -555,7 +555,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac SetTownRatingTestMode(false); if (CmdFailed(res)) { res.SetGlobalErrorMessage(); - ShowErrorMessage(_error_message, error_part1, x, y); + ShowErrorMessage(error_part1, _error_message, x, y); } else { ShowEstimatedCostOrIncome(res.GetCost(), x, y); } @@ -626,7 +626,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac if (res2.GetCost() != 0 && tile != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2.GetCost()); if (_additional_cash_required != 0) { SetDParam(0, _additional_cash_required); - if (my_cmd) ShowErrorMessage(STR_ERROR_NOT_ENOUGH_CASH_REQUIRES_CURRENCY, error_part1, x, y); + if (my_cmd) ShowErrorMessage(error_part1, STR_ERROR_NOT_ENOUGH_CASH_REQUIRES_CURRENCY, x, y); if (res2.GetCost() == 0) goto callb_err; } } @@ -640,7 +640,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac show_error: /* show error message if the command fails? */ if (IsLocalCompany() && error_part1 != 0 && my_cmd) { - ShowErrorMessage(_error_message, error_part1, x, y); + ShowErrorMessage(error_part1, _error_message, x, y); } callb_err: |