summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-10 08:37:41 +0000
committertron <tron@openttd.org>2006-06-10 08:37:41 +0000
commita2362674e33e66bf1d27df208db5b2250a01012e (patch)
treeddcc7798b94be03152e4b31cee4bf48bc73774e4 /order_cmd.c
parentfee9ee2c05a107e458c20e8773c9adce38a54a4c (diff)
downloadopenttd-a2362674e33e66bf1d27df208db5b2250a01012e.tar.xz
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/order_cmd.c b/order_cmd.c
index 70a1539a3..cb524312a 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -189,7 +189,7 @@ int32 CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
st = GetStation(new_order.station);
if (!IsValidStation(st) ||
- (st->airport_type != AT_OILRIG && !(IsBuoy(st)) && !CheckOwnership(st->owner))) {
+ (st->airport_type != AT_OILRIG && !IsBuoy(st) && !CheckOwnership(st->owner))) {
return CMD_ERROR;
}