fix output interleaving during rare enemy search

This commit is contained in:
Martin Michelsen
2024-01-13 09:48:00 -08:00
parent 1453cd4c9c
commit 4a23d86f56
+2 -1
View File
@@ -1905,6 +1905,7 @@ Action a_find_rare_enemy_seeds(
}
if (rare_indexes.size() >= min_count) {
lock_guard g(output_lock);
fprintf(stdout, "%08" PRIX64 ":", seed);
for (size_t index : rare_indexes) {
fprintf(stdout, " E-%zX:%s", index, name_for_enum(map->enemies[index].type));
@@ -1915,7 +1916,7 @@ Action a_find_rare_enemy_seeds(
return false;
};
parallel_range<uint64_t>(thread_fn, 0, 0x100000000, num_threads);
parallel_range<uint64_t>(thread_fn, 0, 0x100000000, num_threads, nullptr);
});
Action a_parse_object_graph(