(svn r20165) -Feature: [NewGRF] Information (var 4A) about the current railtype a train is on.
This commit is contained in:
@@ -110,7 +110,7 @@ SpriteID GetCustomRailSprite(const RailtypeInfo *rti, TileIndex tile, RailTypeSp
|
||||
uint8 GetReverseRailTypeTranslation(RailType railtype, const GRFFile *grffile)
|
||||
{
|
||||
/* No rail type table present, return rail type as-is */
|
||||
if (grffile->railtype_max == 0) return railtype;
|
||||
if (grffile == NULL || grffile->railtype_max == 0) return railtype;
|
||||
|
||||
/* Look for a matching rail type label in the table */
|
||||
RailTypeLabel label = GetRailTypeInfo(railtype)->label;
|
||||
|
Reference in New Issue
Block a user