1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 11:08:05 +00:00

throw hr_exceptions not strings

This commit is contained in:
Zeno Rogue
2021-03-24 20:25:44 +01:00
parent 8fc92f2e83
commit 953e17722d
6 changed files with 12 additions and 12 deletions

View File

@@ -526,7 +526,7 @@ EX namespace bt {
case bd_up_right:
return xpush(-log(2)) * parabolic(1);
default:
throw "unknown direction";
throw hr_exception("unknown direction");
}
else if(use_direct_for(dir))
return cgi.direct_tmatrix[dir];