equal
deleted
inserted
replaced
970 } |
970 } |
971 |
971 |
972 if (v->direction != u->direction || !(v->direction & 1)) return; |
972 if (v->direction != u->direction || !(v->direction & 1)) return; |
973 |
973 |
974 /* Check if vehicle is in a road stop, depot, tunnel or bridge or not on a straight road */ |
974 /* Check if vehicle is in a road stop, depot, tunnel or bridge or not on a straight road */ |
975 if (v->u.road.state >= RVS_IN_ROAD_STOP || !IsStraightRoadTrackdir((Trackdir)(v->u.road.state & RVSB_TRACKDIR_MASK))) return; |
975 if (v->u.road.state >= RVSB_IN_ROAD_STOP || !IsStraightRoadTrackdir((Trackdir)(v->u.road.state & RVSB_TRACKDIR_MASK))) return; |
976 |
976 |
977 tt = GetTileTrackStatus(v->tile, TRANSPORT_ROAD) & 0x3F; |
977 tt = GetTileTrackStatus(v->tile, TRANSPORT_ROAD) & 0x3F; |
978 if ((tt & 3) == 0) return; |
978 if ((tt & 3) == 0) return; |
979 if ((tt & 0x3C) != 0) return; |
979 if ((tt & 0x3C) != 0) return; |
980 |
980 |