diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-06 16:13:44 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-06 16:13:44 +0000 |
commit | 132f8673db3ae34462bad7744005fb2a75d890ca (patch) | |
tree | a86bf470df5d0591fce0454fd971dc9dc24ad607 /train_cmd.c | |
parent | 3e0028c0dfdbea55f9edc6f8f503a2530cecbcdd (diff) | |
download | openttd-132f8673db3ae34462bad7744005fb2a75d890ca.tar.xz |
(svn r2274) - Codechange: some comments, parentheses and EngineID typedef for engine_type
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/train_cmd.c b/train_cmd.c index 94008418b..80400faf9 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -955,7 +955,7 @@ int32 CmdSellRailWagon(int x, int y, uint32 flags, uint32 p1, uint32 p2) /* 2. We are selling the first engine, some special action might be required * here, so take attention */ - if (flags & DC_EXEC && v == first) { + if ((flags & DC_EXEC) && v == first) { Vehicle *new_f = first->next; /* 2.1 If the first wagon is sold, update the first-> pointers to NULL */ @@ -1043,7 +1043,7 @@ int32 CmdSellRailWagon(int x, int y, uint32 flags, uint32 p1, uint32 p2) } /* 3. If it is still a valid train after selling, update its acceleration */ - if (flags & DC_EXEC && first != NULL && first->subtype == TS_Front_Engine) UpdateTrainAcceleration(first); + if ((flags & DC_EXEC) && first != NULL && first->subtype == TS_Front_Engine) UpdateTrainAcceleration(first); } break; } return cost; |