summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-02-25 21:13:50 +0000
committersmatz <smatz@openttd.org>2010-02-25 21:13:50 +0000
commitebab6120e6010d54f18219d41e7ed7e92906e871 (patch)
tree111f39301a377069ef42b86d8f097f7346e4e893 /src
parent7ff55502f04f9f75b01879ea04518c14d4706046 (diff)
downloadopenttd-ebab6120e6010d54f18219d41e7ed7e92906e871.tar.xz
(svn r19257) -Codechange: minor coding style fix
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 976fe6467..89d661fe2 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -1634,8 +1634,8 @@ static void ReverseTrainSwapVeh(Train *v, int l, int r)
if (a != b) {
/* swap the hidden bits */
{
- uint16 tmp = (a->vehstatus & ~VS_HIDDEN) | (b->vehstatus&VS_HIDDEN);
- b->vehstatus = (b->vehstatus & ~VS_HIDDEN) | (a->vehstatus&VS_HIDDEN);
+ uint16 tmp = (a->vehstatus & ~VS_HIDDEN) | (b->vehstatus & VS_HIDDEN);
+ b->vehstatus = (b->vehstatus & ~VS_HIDDEN) | (a->vehstatus & VS_HIDDEN);
a->vehstatus = tmp;
}