diff options
author | tron <tron@openttd.org> | 2006-03-08 08:28:48 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-08 08:28:48 +0000 |
commit | 2181a72e9ee5db7aa568dd25172e1355e76b4f45 (patch) | |
tree | 2ff4a5c18f268f19fbfd9e5f264a66079d450100 /roadveh_cmd.c | |
parent | 03536a32a189918713ec808bf270d4ad853a7a38 (diff) | |
download | openttd-2181a72e9ee5db7aa568dd25172e1355e76b4f45.tar.xz |
(svn r3787) Use DirToDiagDir() instead of >> 1
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 2 |
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) { |