Fix position of new entities
This commit is contained in:
+4
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user