From 3e5e15a4923c752be703d7afb1214d5e5a767fad Mon Sep 17 00:00:00 2001 From: aura Date: Wed, 25 Feb 2026 08:58:39 +0100 Subject: finish wall collisions (clipvelocity), some utils --- src/editor/view3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/editor/view3d.cpp') 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 ); -- cgit v1.2.3