mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-13 23:18:16 +00:00
refactored check_road_shortcuts
This commit is contained in:
parent
cccab05f66
commit
01cb5eb9ef
@ -2059,6 +2059,9 @@ EX void rules_iteration() {
|
||||
|
||||
if(WDIM == 3) {
|
||||
check_road_shortcuts();
|
||||
optimize();
|
||||
N = isize(important);
|
||||
check_validity_3d();
|
||||
}
|
||||
|
||||
if(skipped_branches.size()) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user