src/bridge_gui.cpp
changeset 9320 4e17d11b92e4
parent 9317 f14eb8815829
child 9365 95e9cbc0257e
equal deleted inserted replaced
9319:141ca3009ac2 9320:4e17d11b92e4
   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);