Fix bug pressing escape menu while spawn transition
authorhgn <hgodden00@gmail.com>
Mon, 17 Mar 2025 13:07:26 +0000 (13:07 +0000)
committerhgn <hgodden00@gmail.com>
Mon, 17 Mar 2025 13:07:26 +0000 (13:07 +0000)
src/menu.c

index 5def867e18ca67ce2d5ef6bd7ec16ae99bc97930..2bb1016cfb9871f86dcdc69a754dd348047e2bdf 100644 (file)
@@ -880,6 +880,9 @@ void menu_gui( ui_context *ctx )
       menu.bg_blur = 0;
 
       world_map_gui( ctx, (ui_rect){ 0, height, vg.window_x, vg.window_y - height }, mh, mv, &menu_backable_to_exit );
+
+      if( world_map.spawn_timer > 0.0f )
+         menu_backable_to_exit = 0;
    }
    else /* menu.main_index != k_menu_main_map) */
    {