Allocate the toolbar. */
| 2590 | |
| 2591 | /** Allocate the toolbar. */ |
| 2592 | void AllocateToolbar() |
| 2593 | { |
| 2594 | /* Clean old GUI values; railtype is (re)set by rail_gui.cpp */ |
| 2595 | _last_built_roadtype = ROADTYPE_ROAD; |
| 2596 | _last_built_tramtype = ROADTYPE_TRAM; |
| 2597 | |
| 2598 | if (_game_mode == GM_EDITOR) { |
| 2599 | new ScenarioEditorToolbarWindow(_toolb_scen_desc); |
| 2600 | } else { |
| 2601 | new MainToolbarWindow(_toolb_normal_desc); |
| 2602 | } |
| 2603 | } |