summaryrefslogtreecommitdiff
path: root/editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor.c')
-rw-r--r--editor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor.c b/editor.c
index 645f7f7..86f7527 100644
--- a/editor.c
+++ b/editor.c
@@ -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);
}