summaryrefslogtreecommitdiff
path: root/src/editor/editor.cpp
diff options
context:
space:
mode:
authorkasull <qsullian@gmail.com>2026-02-26 04:31:08 -0500
committerkasull <qsullian@gmail.com>2026-02-26 04:31:08 -0500
commit94e0df832c83bc7b9ead0824cfbc41f166869c68 (patch)
treec90d78ea332d66a09020a431b5031aa42686bd9f /src/editor/editor.cpp
parentb384930de5044934207d1b2ceb4fa55705094f8b (diff)
add wall shape dropdown and drag-based polygon creation with height controls
fix wall Z bounds calculation and key index masking in input handling preserve 2D view/cursor stability when map bounds update
Diffstat (limited to 'src/editor/editor.cpp')
-rw-r--r--src/editor/editor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/editor/editor.cpp b/src/editor/editor.cpp
index d97164e..ad23d1e 100644
--- a/src/editor/editor.cpp
+++ b/src/editor/editor.cpp
@@ -15,6 +15,10 @@ GAME_EDITOR* editor_create( GAME_DATA* game ) {
e->grid = 1.f;
e->spritesize = EDITOR_DEFAULT_SPRITE_SIZE;
+ e->tool.wallshape = EDITOR_WALLSHAPE_LINE;
+ e->tool.polysides = EDITOR_DEFAULT_POLY_SIDES;
+ e->tool.wallheight = EDITOR_DEFAULT_WALL_HEIGHT;
+ e->tool.placementheight = EDITOR_DEFAULT_PLACEMENT_HEIGHT;
e->game = game;
gui_init( game );