1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-02 21:31:22 +00:00

Rationalize some std::exception stuff.

This commit is contained in:
Arthur O'Dwyer
2021-03-21 17:56:38 -04:00
parent 4c10b17b7e
commit 1761b02b90
8 changed files with 32 additions and 34 deletions

View File

@@ -503,12 +503,12 @@ EX void generate_track() {
}
else find_track(s, 0, length);
}
catch(hr_track_failure&) {
catch(const hr_track_failure&) {
race_try++;
gamegen_failure = true;
return;
}
catch(hr_shortest_path_exception&) {
catch(const hr_shortest_path_exception&) {
addMessage("error: could not build path");
gamegen_failure = true;
racing::on = false;