diff options
author | rubidium <rubidium@openttd.org> | 2007-04-18 22:10:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-04-18 22:10:36 +0000 |
commit | 80c259f64fd38cdb84f2bcb8a146e7ec4a448070 (patch) | |
tree | f018095aed2d70f8386d800c8e8ac662f4b9c8fa /src/command.cpp | |
parent | 41cf2fa69b8ff60f1b1633b68f47434075d00d75 (diff) | |
download | openttd-80c259f64fd38cdb84f2bcb8a146e7ec4a448070.tar.xz |
(svn r9672) -Cleanup: lots of coding style fixes around operands.
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command.cpp b/src/command.cpp index 0b67cb4df..94717a38d 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -407,7 +407,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; + int32 res = 0, res2; CommandProc *proc; uint32 flags; bool notest; @@ -544,7 +544,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, if (res2 != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2); if (_additional_cash_required) { SetDParam(0, _additional_cash_required); - ShowErrorMessage(STR_0003_NOT_ENOUGH_CASH_REQUIRES, error_part1, x,y); + ShowErrorMessage(STR_0003_NOT_ENOUGH_CASH_REQUIRES, error_part1, x, y); if (res2 == 0) goto callb_err; } } @@ -558,7 +558,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, show_error: /* show error message if the command fails? */ if (IsLocalPlayer() && error_part1 != 0) { - ShowErrorMessage(_error_message, error_part1, x,y); + ShowErrorMessage(_error_message, error_part1, x, y); } callb_err: |