station.h
changeset 3360 edef9ad64773
parent 3347 d5d8ace1bb13
child 3404 3ac4f7fedfb5
equal deleted inserted replaced
3359:d4316b1af327 3360:edef9ad64773
   192 
   192 
   193 
   193 
   194 void StationPickerDrawSprite(int x, int y, RailType railtype, int image);
   194 void StationPickerDrawSprite(int x, int y, RailType railtype, int image);
   195 
   195 
   196 RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type);
   196 RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type);
   197 static inline RoadStopType GetRoadStopType(TileIndex tile)
       
   198 {
       
   199 	return (_m[tile].m5 < 0x47) ? RS_TRUCK : RS_BUS;
       
   200 }
       
   201 
       
   202 RoadStop * GetPrimaryRoadStop(const Station *st, RoadStopType type);
   197 RoadStop * GetPrimaryRoadStop(const Station *st, RoadStopType type);
   203 uint GetNumRoadStops(const Station* st, RoadStopType type);
   198 uint GetNumRoadStops(const Station* st, RoadStopType type);
   204 RoadStop * AllocateRoadStop( void );
   199 RoadStop * AllocateRoadStop( void );
   205 void ClearSlot(Vehicle *v);
   200 void ClearSlot(Vehicle *v);
   206 
   201