summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-27 21:25:53 +0000
committertron <tron@openttd.org>2006-06-27 21:25:53 +0000
commit772fbda3e37488c2bf7beb96d35b2cbe001d9eda (patch)
tree1bfdb9c99b43fdc3b07ac13cbed4259a06d34f6f /newgrf.c
parent7fa72c5e2f224243a8c89096f0b07259e05e44cf (diff)
downloadopenttd-772fbda3e37488c2bf7beb96d35b2cbe001d9eda.tar.xz
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/newgrf.c b/newgrf.c
index 01c432787..e72c5929e 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -2467,17 +2467,19 @@ static void ParamSet(byte *buf, int len)
break;
case 0x05:
- if ((int32)src2 < 0)
+ if ((int32)src2 < 0) {
res = src1 >> -(int32)src2;
- else
+ } else {
res = src1 << src2;
+ }
break;
case 0x06:
- if ((int32)src2 < 0)
+ if ((int32)src2 < 0) {
res = (int32)src1 >> -(int32)src2;
- else
+ } else {
res = (int32)src1 << src2;
+ }
break;
case 0x07: /* Bitwise AND */