src/rail.h
changeset 8732 0262169b6bc9
parent 8712 be50475ea8fc
child 8860 a30cd0629e2b
equal deleted inserted replaced
8731:cf2219a43884 8732:0262169b6bc9
   181 void DrawTrainDepotSprite(int x, int y, int image, RailType railtype);
   181 void DrawTrainDepotSprite(int x, int y, int image, RailType railtype);
   182 void DrawDefaultWaypointSprite(int x, int y, RailType railtype);
   182 void DrawDefaultWaypointSprite(int x, int y, RailType railtype);
   183 void *EnsureNoTrainOnTrackProc(Vehicle *v, void *data);
   183 void *EnsureNoTrainOnTrackProc(Vehicle *v, void *data);
   184 int TicksToLeaveDepot(const Vehicle *v);
   184 int TicksToLeaveDepot(const Vehicle *v);
   185 
   185 
       
   186 
       
   187 /**
       
   188  * Test if a rail type has catenary
       
   189  * @param rt Rail type to test
       
   190  */
       
   191 static inline bool HasCatenary(RailType rt)
       
   192 {
       
   193 	return rt == RAILTYPE_ELECTRIC;
       
   194 }
       
   195 
       
   196 
   186 /**
   197 /**
   187  * Draws overhead wires and pylons for electric railways.
   198  * Draws overhead wires and pylons for electric railways.
   188  * @param ti The TileInfo struct of the tile being drawn
   199  * @param ti The TileInfo struct of the tile being drawn
   189  * @see DrawCatenaryRailway
   200  * @see DrawCatenaryRailway
   190  */
   201  */