equal
deleted
inserted
replaced
217 void ShowBuildDocksToolbar(void) |
217 void ShowBuildDocksToolbar(void) |
218 { |
218 { |
219 if (!IsValidPlayer(_current_player)) return; |
219 if (!IsValidPlayer(_current_player)) return; |
220 |
220 |
221 DeleteWindowById(WC_BUILD_TOOLBAR, 0); |
221 DeleteWindowById(WC_BUILD_TOOLBAR, 0); |
222 AllocateWindowDesc(&_build_docks_toolbar_desc); |
222 Window *w = AllocateWindowDesc(&_build_docks_toolbar_desc); |
223 if (_patches.link_terraform_toolbar) ShowTerraformToolbar(); |
223 if (_patches.link_terraform_toolbar) ShowTerraformToolbar(w); |
224 } |
224 } |
225 |
225 |
226 static void BuildDockStationWndProc(Window *w, WindowEvent *e) |
226 static void BuildDockStationWndProc(Window *w, WindowEvent *e) |
227 { |
227 { |
228 switch (e->event) { |
228 switch (e->event) { |