1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 23:47:40 +00:00

hr_exception, currently used for build_shortest_path

This commit is contained in:
Zeno Rogue
2019-04-03 20:24:15 +02:00
parent a179a2b80d
commit 44495852ad
3 changed files with 15 additions and 5 deletions

View File

@@ -301,8 +301,15 @@ void generate_track() {
}
}
track = build_shortest_path(s, goal);
try {
track = build_shortest_path(s, goal);
}
catch(hr_shortest_path_exception&) {
addMessage("error: could not build path");
gamegen_failure = true;
racing::on = false;
return;
}
/*
transmatrix At = spin(hrand(1000));