1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 09:57:41 +00:00

fixed more fallthroughs, added exception hr_wrong_geometry

This commit is contained in:
Zeno Rogue
2021-03-12 22:59:24 +01:00
parent eb6322b864
commit 5f86ed6b4b
4 changed files with 8 additions and 2 deletions

View File

@@ -427,7 +427,7 @@ EX namespace bt {
}
#endif
default:
throw hr_wrong_dir();
throw hr_wrong_geometry();
}
}
@@ -484,6 +484,7 @@ EX namespace bt {
add(-2 * t0 + shift1);
}
}
break;
case gHoroRec: {
ld r2 = sqrt(2);
for(int y=-1; y<=1; y++) for(int x=-1; x<=1; x+=2) for(int z=-1; z<=1; z++)