(svn r3787) Use DirToDiagDir() instead of >> 1

This commit is contained in:
tron
2006-03-08 08:28:48 +00:00
parent 03536a32a1
commit 2181a72e9e
5 changed files with 6 additions and 6 deletions

View File

@@ -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) {