src/newgrf_station.cpp
branchnoai
changeset 9704 197cb8c6ae17
parent 9701 d1ac22c62f64
child 9722 ebf0ece7d8f6
equal deleted inserted replaced
9703:d2a6acdbd665 9704:197cb8c6ae17
   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) {