summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-08 08:16:31 +0000
committertron <tron@openttd.org>2006-03-08 08:16:31 +0000
commit03536a32a189918713ec808bf270d4ad853a7a38 (patch)
treed22cc6ddd9856b7d1f71491480efca03c24ec3c9 /disaster_cmd.c
parent8b447de24c0f65dabb9fc9ea710f6f567303f40f (diff)
downloadopenttd-03536a32a189918713ec808bf270d4ad853a7a38.tar.xz
(svn r3786) More work for DirDiff
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);
}