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:
11
racing.cpp
11
racing.cpp
@@ -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));
|
||||
|
Reference in New Issue
Block a user