collision map
This commit is contained in:
@@ -136,7 +136,10 @@ void Debug::loadFromFile() {
|
||||
auto yaml = fkyaml::node::deserialize(content);
|
||||
// Detecta si falta alguna clave esperada para regenerar el fichero con los nuevos defaults
|
||||
for (const char* key : {"room", "spawn_x", "spawn_y", "spawn_flip", "initial_scene", "lazy_loading", "render_info"}) {
|
||||
if (!yaml.contains(key)) { needs_save = true; break; }
|
||||
if (!yaml.contains(key)) {
|
||||
needs_save = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (yaml.contains("room")) {
|
||||
spawn_settings_.room = yaml["room"].get_value<std::string>();
|
||||
|
||||
Reference in New Issue
Block a user