src/newgrf_station.cpp
changeset 7642 535e5d93ffb1
parent 7474 1daa825ba893
child 7922 a7e266f966d9
equal deleted inserted replaced
7641:3a75903fd892 7642:535e5d93ffb1
   749 	statspec = GetCustomStationSpec(sclass, station);
   749 	statspec = GetCustomStationSpec(sclass, station);
   750 	if (statspec == NULL) return false;
   750 	if (statspec == NULL) return false;
   751 
   751 
   752 	relocation = GetCustomStationRelocation(statspec, NULL, INVALID_TILE);
   752 	relocation = GetCustomStationRelocation(statspec, NULL, INVALID_TILE);
   753 
   753 
   754 	if (HASBIT(statspec->callbackmask, CBM_CUSTOM_LAYOUT)) {
   754 	if (HASBIT(statspec->callbackmask, CBM_STATION_SPRITE_LAYOUT)) {
   755 		uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0x2110000, 0, statspec, NULL, INVALID_TILE);
   755 		uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0x2110000, 0, statspec, NULL, INVALID_TILE);
   756 		if (callback != CALLBACK_FAILED) tile = callback;
   756 		if (callback != CALLBACK_FAILED) tile = callback;
   757 	}
   757 	}
   758 
   758 
   759 	if (statspec->renderdata == NULL) {
   759 	if (statspec->renderdata == NULL) {