equal
deleted
inserted
replaced
492 * than 2 tracks, they will surely overlap. When there are two, they will |
492 * than 2 tracks, they will surely overlap. When there are two, they will |
493 * always overlap unless they are lower & upper or right & left. */ |
493 * always overlap unless they are lower & upper or right & left. */ |
494 return bits != TRACK_BIT_HORZ && bits != TRACK_BIT_VERT; |
494 return bits != TRACK_BIT_HORZ && bits != TRACK_BIT_VERT; |
495 } |
495 } |
496 |
496 |
|
497 /** |
|
498 * Checks whether the trackdir means that we are reversing. |
|
499 * @param dir the trackdir to check |
|
500 * @return true if it is a reversing road trackdir |
|
501 */ |
|
502 static inline bool IsReversingRoadTrackdir(Trackdir dir) |
|
503 { |
|
504 return (dir & 0x07) >= 6; |
|
505 } |
|
506 |
|
507 /** |
|
508 * Checks whether the given trackdir is a straight road |
|
509 * @param dir the trackdir to check |
|
510 * @return true if it is a straight road trackdir |
|
511 */ |
|
512 static inline bool IsStraightRoadTrackdir(Trackdir dir) |
|
513 { |
|
514 return (dir & 0x06) == 0; |
|
515 } |
|
516 |
497 #endif /* RAIL_H */ |
517 #endif /* RAIL_H */ |