summaryrefslogtreecommitdiff
path: root/src/editor
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-25 08:58:39 +0100
committeraura <nw@moneybot.cc>2026-02-25 08:58:39 +0100
commit3e5e15a4923c752be703d7afb1214d5e5a767fad (patch)
treed76049a556bd0fff581a018408faa6bed23b74eb /src/editor
parent25da8e01a0499c273357cb2feb2825b53e86795b (diff)
finish wall collisions (clipvelocity), some utils
Diffstat (limited to 'src/editor')
-rw-r--r--src/editor/view3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editor/view3d.cpp b/src/editor/view3d.cpp
index f8d1def..656eda9 100644
--- a/src/editor/view3d.cpp
+++ b/src/editor/view3d.cpp
@@ -93,7 +93,7 @@ void gui_editor_3dview_input_fn( void* ptr ) {
if( input.mouse.pos.x >= view_x && input.mouse.pos.x < view_x + view->w &&
input.mouse.pos.y >= view_y && input.mouse.pos.y < view_y + view->h - EDITORVIEW_TOOLBAR_OFFSET ) {
if( !input.mouselock && !view->heldoutbounds )
- input_capture_mouse( true );
+ input_capture_mouse( 1 );
} else {
view->heldoutbounds = 1;
}
@@ -109,7 +109,7 @@ void gui_editor_3dview_create_toolbar( GUI_EDITOR_3DVIEW* view ) {
gui_button( x, y, 90, 18, "compile bsp", pfn( void* b ) {
if( editor->map->bsp )
bsp_free( editor->map->bsp );
- editor->map->bsp = bsp_build_map( editor->map );
+ bsp_build_map( editor->map );
} ); x += 100;
gui_checkbox( x, y, "draw bsp", &e->drawbsp );