fix: bug que feia que en el editor, al canviar d'habitació el renderInfo tornara a eixir

This commit is contained in:
2026-04-02 19:55:28 +02:00
parent cccb2359cf
commit cea5492abc
3 changed files with 21 additions and 12 deletions

View File

@@ -49,6 +49,7 @@ class MapEditor {
auto showGrid(bool show) -> std::string;
[[nodiscard]] auto isGridEnabled() const -> bool { return settings_.grid; }
void toggleMiniMap();
void setReenter(bool value) { reenter_ = value; }
auto setMiniMapBg(const std::string& color) -> std::string;
auto setMiniMapConn(const std::string& color) -> std::string;
@@ -150,6 +151,7 @@ class MapEditor {
// Estado previo (para restaurar al salir)
Options::Cheat::State invincible_before_editor_{Options::Cheat::State::DISABLED};
bool render_info_before_editor_{false};
bool reenter_{false}; // true cuando es un re-enter tras cambio de room (no tocar render_info)
};
#endif // _DEBUG