src/road_func.h
changeset 8734 cf2c240d2e1b
parent 8716 360342cfd3fe
child 10207 c291a21b304e
equal deleted inserted replaced
8733:e60ce9c3ae47 8734:cf2c240d2e1b
    99 	}
    99 	}
   100 	return r;
   100 	return r;
   101 }
   101 }
   102 
   102 
   103 /**
   103 /**
       
   104  * Check if we've got a straight road
       
   105  *
       
   106  * @param r The given RoadBits
       
   107  * @return true if we've got a straight road
       
   108  */
       
   109 static inline bool IsStraightRoad(RoadBits r)
       
   110 {
       
   111 	return (r == ROAD_X || r == ROAD_Y);
       
   112 }
       
   113 
       
   114 /**
   104  * Create the road-part which belongs to the given DiagDirection
   115  * Create the road-part which belongs to the given DiagDirection
   105  *
   116  *
   106  * This function returns a RoadBits value which belongs to
   117  * This function returns a RoadBits value which belongs to
   107  * the given DiagDirection.
   118  * the given DiagDirection.
   108  *
   119  *