1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-15 22:27:38 +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

@@ -427,11 +427,11 @@ EX namespace sn {
case 8:
return xpush(bw*(4.5-j)) * zpush(-1) * ypush(bw*(i-7));
default:
throw hr_wrong_dir();
throw hr_exception("wrong dir");
}
}
default: throw hr_wrong_geometry();
default: throw hr_exception("wrong geometry");
}
}