1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-10 18:52:59 +00:00

editing map/portals now changes map_version

This commit is contained in:
Zeno Rogue
2022-10-27 00:02:10 +02:00
parent f4282e1118
commit 3ce5597cc1
2 changed files with 10 additions and 1 deletions

View File

@@ -755,6 +755,7 @@ EX void show_portals() {
unconnected.push_back(tcw);
connections.erase(cw);
connections.erase(tcw);
mapeditor::map_version++;
});
}
else if(in_list) {
@@ -771,6 +772,7 @@ EX void show_portals() {
dialog::addItem(XLAT("connect " + lalign(0, p)), dialog::list_fake_key++);
dialog::add_action([p, cw] {
connect_portal(cw, p, edit_spin);
mapeditor::map_version++;
erase_unconnected(p);
});
}