mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 10:00:42 +00:00
fixed some crashes in E2xE
This commit is contained in:
parent
937fdcd0e2
commit
78ecc9e960
6
cell.cpp
6
cell.cpp
@ -860,7 +860,8 @@ EX cdata *arcmCdata(cell *c) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX int getCdata(cell *c, int j) {
|
EX int getCdata(cell *c, int j) {
|
||||||
if(euclid && !archimedean && !penrose) return getEuclidCdata(euc2_coordinates(c))->val[j];
|
if(prod) { c = hybrid::get_where(c).first; return PIU(getBits(c)); }
|
||||||
|
else if(euclid && !archimedean && !penrose) return getEuclidCdata(euc2_coordinates(c))->val[j];
|
||||||
else if(archimedean && euclid)
|
else if(archimedean && euclid)
|
||||||
return getEuclidCdata(pseudocoords(c))->val[j];
|
return getEuclidCdata(pseudocoords(c))->val[j];
|
||||||
else if(archimedean && hyperbolic)
|
else if(archimedean && hyperbolic)
|
||||||
@ -877,7 +878,8 @@ EX int getCdata(cell *c, int j) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX int getBits(cell *c) {
|
EX int getBits(cell *c) {
|
||||||
if(euclid && !archimedean && !penrose) return getEuclidCdata(euc2_coordinates(c))->bits;
|
if(prod) { c = hybrid::get_where(c).first; return PIU(getBits(c)); }
|
||||||
|
else if(euclid && !archimedean && !penrose) return getEuclidCdata(euc2_coordinates(c))->bits;
|
||||||
else if(archimedean && euclid)
|
else if(archimedean && euclid)
|
||||||
return getEuclidCdata(pseudocoords(c))->bits;
|
return getEuclidCdata(pseudocoords(c))->bits;
|
||||||
else if(archimedean && (hyperbolic || sl2))
|
else if(archimedean && (hyperbolic || sl2))
|
||||||
|
Loading…
Reference in New Issue
Block a user