1068 for (uint16 i = this->vscroll.pos; i < _railstation.station_count && i < (uint)(this->vscroll.pos + this->vscroll.cap); i++) { |
1068 for (uint16 i = this->vscroll.pos; i < _railstation.station_count && i < (uint)(this->vscroll.pos + this->vscroll.cap); i++) { |
1069 const StationSpec *statspec = GetCustomStationSpec(_railstation.station_class, i); |
1069 const StationSpec *statspec = GetCustomStationSpec(_railstation.station_class, i); |
1070 |
1070 |
1071 if (statspec != NULL && statspec->name != 0) { |
1071 if (statspec != NULL && statspec->name != 0) { |
1072 if (HasBit(statspec->callbackmask, CBM_STATION_AVAIL) && GB(GetStationCallback(CBID_STATION_AVAILABILITY, 0, 0, statspec, NULL, INVALID_TILE), 0, 8) == 0) { |
1072 if (HasBit(statspec->callbackmask, CBM_STATION_AVAIL) && GB(GetStationCallback(CBID_STATION_AVAILABILITY, 0, 0, statspec, NULL, INVALID_TILE), 0, 8) == 0) { |
1073 GfxFillRect(8, y - 2, 127, y + 10, (1 << PALETTE_MODIFIER_GREYOUT)); |
1073 GfxFillRect(8, y - 2, 127, y + 10, 0, FILLRECT_CHECKER); |
1074 } |
1074 } |
1075 |
1075 |
1076 DrawStringTruncated(9, y, statspec->name, i == _railstation.station_type ? TC_WHITE : TC_BLACK, 118); |
1076 DrawStringTruncated(9, y, statspec->name, i == _railstation.station_type ? TC_WHITE : TC_BLACK, 118); |
1077 } else { |
1077 } else { |
1078 DrawStringTruncated(9, y, STR_STAT_CLASS_DFLT, i == _railstation.station_type ? TC_WHITE : TC_BLACK, 118); |
1078 DrawStringTruncated(9, y, STR_STAT_CLASS_DFLT, i == _railstation.station_type ? TC_WHITE : TC_BLACK, 118); |
1604 DrawWaypointSprite(2 + i * 68, 25, this->hscroll.pos + i, _cur_railtype); |
1604 DrawWaypointSprite(2 + i * 68, 25, this->hscroll.pos + i, _cur_railtype); |
1605 |
1605 |
1606 if (statspec != NULL && |
1606 if (statspec != NULL && |
1607 HasBit(statspec->callbackmask, CBM_STATION_AVAIL) && |
1607 HasBit(statspec->callbackmask, CBM_STATION_AVAIL) && |
1608 GB(GetStationCallback(CBID_STATION_AVAILABILITY, 0, 0, statspec, NULL, INVALID_TILE), 0, 8) == 0) { |
1608 GB(GetStationCallback(CBID_STATION_AVAILABILITY, 0, 0, statspec, NULL, INVALID_TILE), 0, 8) == 0) { |
1609 GfxFillRect(4 + i * 68, 18, 67 + i * 68, 75, (1 << PALETTE_MODIFIER_GREYOUT)); |
1609 GfxFillRect(4 + i * 68, 18, 67 + i * 68, 75, 0, FILLRECT_CHECKER); |
1610 } |
1610 } |
1611 } |
1611 } |
1612 } |
1612 } |
1613 } |
1613 } |
1614 |
1614 |