summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-18 14:41:24 +0000
committertron <tron@openttd.org>2006-02-18 14:41:24 +0000
commit49c7eb934be0dc92d640ea3a32c02dddcc83369a (patch)
tree2b47e6b2c9b73650b42ce6caa2b78f05d91cc03b /misc.c
parent6cfefdb2750d9beccb350ea47db9e2edaa61655c (diff)
downloadopenttd-49c7eb934be0dc92d640ea3a32c02dddcc83369a.tar.xz
(svn r3613) Some more const, indentation, whitespace and similar stuff
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc.c b/misc.c
index 615acd0fb..cd8f85f87 100644
--- a/misc.c
+++ b/misc.c
@@ -600,9 +600,9 @@ int FindFirstBit(uint32 value)
// not more than 128.
byte i = 0;
if (value & 0xffff0000) { value >>= 16; i += 16; }
- if (value & 0x0000ff00) { value >>= 8; i += 8; }
- if (value & 0x000000f0) { value >>= 4; i += 4; }
- if (value & 0x0000000c) { value >>= 2; i += 2; }
+ if (value & 0x0000ff00) { value >>= 8; i += 8; }
+ if (value & 0x000000f0) { value >>= 4; i += 4; }
+ if (value & 0x0000000c) { value >>= 2; i += 2; }
if (value & 0x00000002) { i += 1; }
return i;
}