diff options
Diffstat (limited to 'editor.c')
-rw-r--r-- | editor.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -66,6 +66,9 @@ void edit_map(Editor* e, GUI* g, Map* m) { mcs[1] = m->h * tile_display_size; gui_btn(g, gui_cut_left(&t, gui_text_width("Load", 4) + 4), "Save"); gui_btn(g, gui_cut_left(&t, gui_text_width("Save", 4) + 4), "Load"); + if (gui_btn(g, gui_cut_left(&t, gui_text_width("Bake Lights", 11) + 4), "Bake Lights")) { + bake_map(m); + } g->uptr = m; gui_scrollable(g, b, mcs, &map_ss, draw_map_scrollable); } |