Fix position of new entities

This commit is contained in:
SamratGhale
2026-03-27 22:08:34 +05:45
parent f49651384c
commit be8c936e33
3 changed files with 20 additions and 8 deletions
+4 -1
View File
@@ -169,7 +169,7 @@ mu_interface_draw_options :: proc(state: ^engine_state)
interface_all :: proc($E: typeid, interface: ^interface_state, game_data : $G) -> bool
{
{
ret := false
if interface.selected_entity <0
{
@@ -177,6 +177,9 @@ interface_all :: proc(interface: ^interface_state) -> bool
}
if handle_input(E, interface.state, game_data) do return true
state := interface.state
mu.begin(&state.mu_ctx)
//test_window(&state.mu_ctx)