summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r--disaster_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c
index 61590c47a..d053ff199 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -665,7 +665,7 @@ static void DisasterTick_5_and_6(Vehicle *v)
return;
}
- v->direction = (v->direction + (GB(Random(), 0, 1) ? 2 : -2)) & 7;
+ v->direction = ChangeDir(v->direction, GB(Random(), 0, 1) ? DIRDIFF_90RIGHT : DIRDIFF_90LEFT);
}