summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 5a5eb70ff..35a3c8250 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -3013,9 +3013,9 @@ static void HandleCrashedTrain(Vehicle *v)
r = Random();
CreateEffectVehicleRel(u,
- 2 + ((r>>8)&7),
- 2 + ((r>>16)&7),
- 5 + (r&7),
+ GB(r, 8, 3) + 2,
+ GB(r, 16, 3) + 2,
+ GB(r, 0, 3) + 5,
EV_EXPLOSION_SMALL);
break;
}