* Select a new map type. * @param map_type New map type. */
| 821 | * @param map_type New map type. |
| 822 | */ |
| 823 | void SwitchMapType(SmallMapType map_type) |
| 824 | { |
| 825 | this->RaiseWidget(WID_SM_CONTOUR + this->map_type); |
| 826 | this->map_type = map_type; |
| 827 | this->LowerWidget(WID_SM_CONTOUR + this->map_type); |
| 828 | |
| 829 | this->SetupWidgetData(); |
| 830 | |
| 831 | if (map_type == SMT_LINKSTATS) this->overlay->SetDirty(); |
| 832 | if (map_type != SMT_INDUSTRY) this->BreakIndustryChainLink(); |
| 833 | this->ReInit(); |
| 834 | } |
| 835 | |
| 836 | /** |
| 837 | * Set new #scroll_x, #scroll_y, and #subscroll values after limiting them such that the center |
no test coverage detected