Resolve conflict with weight windows and global russian roulette (#3751)

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
GuySten 2026-02-25 22:01:33 +02:00 committed by GitHub
parent 5a85bd92f2
commit c0427dd40a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 748 additions and 154 deletions

View file

@ -1266,6 +1266,13 @@ void read_settings_xml(pugi::xml_node root)
}
}
if (weight_windows_on) {
if (!weight_window_checkpoint_surface &&
!weight_window_checkpoint_collision)
fatal_error(
"Weight Windows are enabled but there are no valid checkpoints.");
}
if (check_for_node(root, "use_decay_photons")) {
settings::use_decay_photons =
get_node_value_bool(root, "use_decay_photons");