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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user