comparison src/terraform_gui.cpp @ 9143:00b40c2158ff draft

(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
author rubidium <rubidium@openttd.org>
date Thu, 08 May 2008 11:50:34 +0000
parents 428852b86d4d
children 856095066478
comparison
equal deleted inserted replaced
9142:ce2b22b5ad16 9143:00b40c2158ff
302 }; 302 };
303 303
304 void ShowTerraformToolbar(Window *link) 304 void ShowTerraformToolbar(Window *link)
305 { 305 {
306 if (!IsValidPlayer(_current_player)) return; 306 if (!IsValidPlayer(_current_player)) return;
307 Window *w = AllocateWindowDescFront(&_terraform_desc, 0); 307 Window *w = AllocateWindowDescFront<Window>(&_terraform_desc, 0);
308 if (w != NULL && link != NULL) { 308 if (w != NULL && link != NULL) {
309 /* Align the terraform toolbar under the main toolbar and put the linked 309 /* Align the terraform toolbar under the main toolbar and put the linked
310 * toolbar to left of it 310 * toolbar to left of it
311 */ 311 */
312 w->top = 22; 312 w->top = 22;
677 ScenEditLandGenWndProc, 677 ScenEditLandGenWndProc,
678 }; 678 };
679 679
680 void ShowEditorTerraformToolbar() 680 void ShowEditorTerraformToolbar()
681 { 681 {
682 AllocateWindowDescFront(&_scen_edit_land_gen_desc, 0); 682 AllocateWindowDescFront<Window>(&_scen_edit_land_gen_desc, 0);
683 } 683 }