* Set a new cargo mask and rebuild the cache. * @param cargo_mask New cargo mask. */
| 426 | * @param cargo_mask New cargo mask. |
| 427 | */ |
| 428 | void LinkGraphOverlay::SetCargoMask(CargoTypes cargo_mask) |
| 429 | { |
| 430 | this->cargo_mask = cargo_mask; |
| 431 | this->RebuildCache(); |
| 432 | this->window->GetWidget<NWidgetBase>(this->widget_id)->SetDirty(this->window); |
| 433 | } |
| 434 | |
| 435 | /** |
| 436 | * Set a new company mask and rebuild the cache. |
no test coverage detected