equal
deleted
inserted
replaced
181 |
181 |
182 this->DrawSortButtonState(BBSW_DROPDOWN_ORDER, (this->bridges->flags & VL_DESC) ? SBS_DOWN : SBS_UP); |
182 this->DrawSortButtonState(BBSW_DROPDOWN_ORDER, (this->bridges->flags & VL_DESC) ? SBS_DOWN : SBS_UP); |
183 |
183 |
184 uint y = this->widget[BBSW_BRIDGE_LIST].top + 2; |
184 uint y = this->widget[BBSW_BRIDGE_LIST].top + 2; |
185 |
185 |
186 for (uint i = this->vscroll.pos; (i < (this->vscroll.cap + this->vscroll.pos)) && (i < this->bridges->list_length); i++) { |
186 for (int i = this->vscroll.pos; (i < (this->vscroll.cap + this->vscroll.pos)) && (i < this->bridges->list_length); i++) { |
187 const BridgeSpec *b = this->bridges->sort_list[i].spec; |
187 const BridgeSpec *b = this->bridges->sort_list[i].spec; |
188 |
188 |
189 SetDParam(2, this->bridges->sort_list[i].cost); |
189 SetDParam(2, this->bridges->sort_list[i].cost); |
190 SetDParam(1, b->speed * 10 / 16); |
190 SetDParam(1, b->speed * 10 / 16); |
191 SetDParam(0, b->material); |
191 SetDParam(0, b->material); |