summaryrefslogtreecommitdiff
path: root/src/editor/editor.cpp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-08-11 19:10:16 +0200
committeraura <nw@moneybot.cc>2026-08-11 19:10:16 +0200
commit17c07b5f884453130d8be3a6d91d730d80d4f8ae (patch)
tree6ec11e5e5f7f0be9ed899196c2897aa76a907de2 /src/editor/editor.cpp
parent1aa17de9188790f049c0edc4281597cb4e535627 (diff)
parent0a9d7ce6a0764a87766ebb23cc1ece4c26c8c678 (diff)
Merge remote-tracking branch 'origin/day'
Diffstat (limited to 'src/editor/editor.cpp')
-rw-r--r--src/editor/editor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/editor/editor.cpp b/src/editor/editor.cpp
index 2e76039..18ae062 100644
--- a/src/editor/editor.cpp
+++ b/src/editor/editor.cpp
@@ -648,6 +648,7 @@ GAME_EDITOR* editor_create( GAME_DATA* game ) {
gui_init( game );
e->wnd = gui_editorwindow( 800, 600 );
+ game->console_window = gui_consolewindow( 10, 10, 256, 128 );
gui_end();
return e;
@@ -663,6 +664,7 @@ STAT editor_close( GAME_EDITOR* e ) {
I32 w = e->wnd->w, h = e->wnd->h;
gui_free( e->wnd );
+ e->wnd = 0;
editor_clear_gui_state_refs( e );
e->wnd = gui_editorwindow( w, h );
} );
@@ -701,8 +703,8 @@ STAT editor_new_map( GAME_EDITOR* e, const char* mapname ) {
m->props.push( { .clr = { 1.f, 1.f, 1.f, 1.f } } );
m->walls.push( {
.propid = 0,
- .start = { 0 , 0, -40.f },
- .end = { 10.f, 0, 80.f },
+ .start = { 0.f, 0.f, -40.f },
+ .end = { 10.f, 0.f, 80.f },
} );
CFG_SECTION* map_cfg = map_serialize( m );