mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-29 08:52:19 +00:00
Rationalize some std::exception stuff.
This commit is contained in:
6
rug.cpp
6
rug.cpp
@@ -600,7 +600,7 @@ EX void buildRug() {
|
||||
else if(v > w && v > w2)
|
||||
addTriangle(v, w, w2);
|
||||
}
|
||||
catch(out_of_range&) {}
|
||||
catch(const std::out_of_range&) {}
|
||||
}
|
||||
|
||||
println(hlog, "vertices = ", isize(points), " triangles= ", isize(triangles));
|
||||
@@ -1218,7 +1218,7 @@ EX void init_model() {
|
||||
"Use a different projection to fix this."
|
||||
);
|
||||
}
|
||||
catch(rug_exception) {
|
||||
catch(const rug_exception&) {
|
||||
close();
|
||||
clear_model();
|
||||
}
|
||||
@@ -1353,7 +1353,7 @@ EX void actDraw() {
|
||||
perform_finger();
|
||||
#endif
|
||||
}
|
||||
catch(rug_exception) {
|
||||
catch(const rug_exception&) {
|
||||
rug::close();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user