feat: current gamemode is no longer reset when the first level is unloaded

stripped
Sara 2024-03-16 22:14:14 +01:00
parent ea338c43aa
commit 1cb000aa98
1 changed files with 0 additions and 1 deletions

View File

@ -165,7 +165,6 @@ Level3D *GameRoot3D::load_level_at(Ref<PackedScene> level, Transform3D at) {
// if this is the first level containing a game mode currently active use it's gamemode as a prototype // 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()) { if(this->game_mode.is_null()) {
this->set_game_mode(instance->get_game_mode_prototype()); this->set_game_mode(instance->get_game_mode_prototype());
instance->connect("tree_exited", Callable(this, "reset_game_mode"));
} }
return instance; return instance;
} }