mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 08:57:39 +00:00
reg3:: throw exceptions if not cubes
This commit is contained in:
2
reg3.cpp
2
reg3.cpp
@@ -288,6 +288,7 @@ EX namespace reg3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX void generate_plain_subcubes() {
|
EX void generate_plain_subcubes() {
|
||||||
|
if(S7 != 6) throw hr_exception("generate_plain_subcubes but no cubes");
|
||||||
auto& ssh = cgi.subshapes;
|
auto& ssh = cgi.subshapes;
|
||||||
const int sub = subcube_count;
|
const int sub = subcube_count;
|
||||||
auto vx = abs(cgi.cellshape[0][0][0]);
|
auto vx = abs(cgi.cellshape[0][0][0]);
|
||||||
@@ -372,6 +373,7 @@ EX namespace reg3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX void generate_special_subcubes(bool bch) {
|
EX void generate_special_subcubes(bool bch) {
|
||||||
|
if(S7 != 6) throw hr_exception("generate_plain_subcubes but no cubes");
|
||||||
const int sub = subcube_count;
|
const int sub = subcube_count;
|
||||||
if(1) {
|
if(1) {
|
||||||
auto vx = abs(cgi.cellshape[0][0][0]);
|
auto vx = abs(cgi.cellshape[0][0][0]);
|
||||||
|
Reference in New Issue
Block a user