equal
deleted
inserted
replaced
276 _build_docks_toolb_widgets, |
276 _build_docks_toolb_widgets, |
277 }; |
277 }; |
278 |
278 |
279 void ShowBuildDocksToolbar() |
279 void ShowBuildDocksToolbar() |
280 { |
280 { |
281 if (!IsValidPlayerID(_current_player)) return; |
281 if (!IsValidCompanyID(_current_company)) return; |
282 |
282 |
283 DeleteWindowByClass(WC_BUILD_TOOLBAR); |
283 DeleteWindowByClass(WC_BUILD_TOOLBAR); |
284 AllocateWindowDescFront<BuildDocksToolbarWindow>(&_build_docks_toolbar_desc, TRANSPORT_WATER); |
284 AllocateWindowDescFront<BuildDocksToolbarWindow>(&_build_docks_toolbar_desc, TRANSPORT_WATER); |
285 } |
285 } |
286 |
286 |