1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-08 13:25:59 +00:00

refactored check_road_shortcuts

This commit is contained in:
Zeno Rogue
2022-08-19 17:41:16 +02:00
parent cccab05f66
commit 01cb5eb9ef
2 changed files with 6 additions and 1 deletions

View File

@@ -1569,8 +1569,10 @@ EX void check_road_shortcuts() {
next_roadsign_id = -100;
throw rulegen_retry("new road shortcuts");
}
}
EX void check_validity_3d() {
println(hlog, "checking validity, important = ", isize(important));
optimize();
imp_as_set.clear();
for(auto t: important) imp_as_set.insert(t.at);
impcount = isize(important);