equal
deleted
inserted
replaced
1059 int w = plat_len; |
1059 int w = plat_len; |
1060 do { |
1060 do { |
1061 |
1061 |
1062 MakeRailStation(tile, st->owner, st->index, axis, *layout_ptr++, GB(p2, 0, 4)); |
1062 MakeRailStation(tile, st->owner, st->index, axis, *layout_ptr++, GB(p2, 0, 4)); |
1063 |
1063 |
1064 if (HASBIT(p2, 4)) SetCustomStationSprite(tile, GB(p2, 8, 8)); |
1064 if (HASBIT(p2, 4)) SetCustomStationSpecIndex(tile, GB(p2, 8, 8)); |
1065 |
1065 |
1066 tile += tile_delta; |
1066 tile += tile_delta; |
1067 } while (--w); |
1067 } while (--w); |
1068 SetSignalsOnBothDir(tile_org, track); |
1068 SetSignalsOnBothDir(tile_org, track); |
1069 tile_org += tile_delta ^ TileDiffXY(1, 1); // perpendicular to tile_delta |
1069 tile_org += tile_delta ^ TileDiffXY(1, 1); // perpendicular to tile_delta |
1932 |
1932 |
1933 // don't show foundation for docks |
1933 // don't show foundation for docks |
1934 if (ti->tileh != 0 && !IsDock(ti->tile)) |
1934 if (ti->tileh != 0 && !IsDock(ti->tile)) |
1935 DrawFoundation(ti, ti->tileh); |
1935 DrawFoundation(ti, ti->tileh); |
1936 |
1936 |
1937 if (IsCustomStationSprite(ti->tile)) { |
1937 if (IsCustomStationSpecIndex(ti->tile)) { |
1938 // look for customization |
1938 // look for customization |
1939 const StationSpec *statspec = GetCustomStation(STAT_CLASS_DFLT, GetCustomStationSprite(ti->tile)); |
1939 const StationSpec *statspec = GetCustomStation(STAT_CLASS_DFLT, GetCustomStationSpecIndex(ti->tile)); |
1940 |
1940 |
1941 //debug("Cust-o-mized %p", statspec); |
1941 //debug("Cust-o-mized %p", statspec); |
1942 |
1942 |
1943 if (statspec != NULL) { |
1943 if (statspec != NULL) { |
1944 const Station* st = GetStationByTile(ti->tile); |
1944 const Station* st = GetStationByTile(ti->tile); |