summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-08 08:28:48 +0000
committertron <tron@openttd.org>2006-03-08 08:28:48 +0000
commitab9af3b05d2b99a63b10a9923026916015788099 (patch)
tree2ff4a5c18f268f19fbfd9e5f264a66079d450100 /roadveh_cmd.c
parentfa6632ec3240c1407668f55169d316c1c4b6bd45 (diff)
downloadopenttd-ab9af3b05d2b99a63b10a9923026916015788099.tar.xz
(svn r3787) Use DirToDiagDir() instead of >> 1
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 6c3d27d69..b941f2e24 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -918,7 +918,7 @@ static void RoadVehCheckOvertake(Vehicle *v, Vehicle *u)
od.tile = v->tile;
if (FindRoadVehToOvertake(&od)) return;
- od.tile = v->tile + TileOffsByDir(v->direction >> 1);
+ od.tile = v->tile + TileOffsByDir(DirToDiagDir(v->direction));
if (FindRoadVehToOvertake(&od)) return;
if (od.u->cur_speed == 0 || od.u->vehstatus&VS_STOPPED) {