summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-14 08:09:57 +0000
committertron <tron@openttd.org>2005-11-14 08:09:57 +0000
commit524fd25cbd2b32fd8166e196c5eab1f2f7e82a8a (patch)
tree80b15078ff5a1c09815ccb23f4c9e7629774dae4 /vehicle.c
parentb34de09e627fc5f8d7579c96c8b4290593c1dd32 (diff)
downloadopenttd-524fd25cbd2b32fd8166e196c5eab1f2f7e82a8a.tar.xz
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index 542d2b99d..b179262a9 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -1232,7 +1232,7 @@ static void BubbleTick(Vehicle *v)
return;
}
if (v->u.special.unk2 != 0) {
- v->spritenum = (InteractiveRandom() & 3) + 1;
+ v->spritenum = GB(InteractiveRandom(), 0, 2) + 1;
} else {
v->spritenum = 6;
}