mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-20 15:24:07 +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) {
|
if(WDIM == 3) {
|
||||||
check_road_shortcuts();
|
check_road_shortcuts();
|
||||||
|
optimize();
|
||||||
|
N = isize(important);
|
||||||
|
check_validity_3d();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(skipped_branches.size()) {
|
if(skipped_branches.size()) {
|
||||||
|
@ -1569,8 +1569,10 @@ EX void check_road_shortcuts() {
|
|||||||
next_roadsign_id = -100;
|
next_roadsign_id = -100;
|
||||||
throw rulegen_retry("new road shortcuts");
|
throw rulegen_retry("new road shortcuts");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
EX void check_validity_3d() {
|
||||||
println(hlog, "checking validity, important = ", isize(important));
|
println(hlog, "checking validity, important = ", isize(important));
|
||||||
optimize();
|
|
||||||
imp_as_set.clear();
|
imp_as_set.clear();
|
||||||
for(auto t: important) imp_as_set.insert(t.at);
|
for(auto t: important) imp_as_set.insert(t.at);
|
||||||
impcount = isize(important);
|
impcount = isize(important);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user