From 1cb000aa98f1dab657e72622504b5beac2830567 Mon Sep 17 00:00:00 2001 From: Sara Date: Sat, 16 Mar 2024 22:14:14 +0100 Subject: [PATCH] feat: current gamemode is no longer reset when the first level is unloaded --- game_root.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/game_root.cpp b/game_root.cpp index 293cbfc..88a3b85 100644 --- a/game_root.cpp +++ b/game_root.cpp @@ -165,7 +165,6 @@ Level3D *GameRoot3D::load_level_at(Ref level, Transform3D at) { // if this is the first level containing a game mode currently active use it's gamemode as a prototype if(this->game_mode.is_null()) { this->set_game_mode(instance->get_game_mode_prototype()); - instance->connect("tree_exited", Callable(this, "reset_game_mode")); } return instance; }