mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-24 15:00:14 +00:00
error message when polydata is incorrect
This commit is contained in:
parent
45bc731a5b
commit
c55fddbdc9
@ -203,7 +203,13 @@ void geometry_information::bshape(hpcshape& sh, PPR prio) {
|
||||
void geometry_information::bshape(hpcshape& sh, PPR prio, double shzoom, int shapeid, double bonus, flagtype flags) {
|
||||
bshape(sh, prio);
|
||||
int whereis = 0;
|
||||
while(polydata[whereis] != NEWSHAPE || polydata[whereis+1] != shapeid) whereis++;
|
||||
while(polydata[whereis] != NEWSHAPE || polydata[whereis+1] != shapeid) {
|
||||
whereis++;
|
||||
if(polydata[whereis] == NEWSHAPE && polydata[whereis+1] == NEWSHAPE) {
|
||||
println(hlog, "error: shape not available");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
int rots = polydata[whereis+2]; int sym = polydata[whereis+3];
|
||||
array<int,3> arr;
|
||||
arr[0] = isize(hpc); arr[1] = rots; arr[2] = sym;
|
||||
|
Loading…
x
Reference in New Issue
Block a user