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

This commit is contained in:
Sara 2024-03-16 22:14:14 +01:00
parent ea338c43aa
commit 1cb000aa98

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->game_mode.is_null()) {
this->set_game_mode(instance->get_game_mode_prototype());
instance->connect("tree_exited", Callable(this, "reset_game_mode"));
}
return instance;
}