1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed some crashes in E2xE

This commit is contained in:
Zeno Rogue 2019-11-29 00:17:40 +01:00
parent 937fdcd0e2
commit 78ecc9e960

View File

@ -860,7 +860,8 @@ EX cdata *arcmCdata(cell *c) {
}
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)
return getEuclidCdata(pseudocoords(c))->val[j];
else if(archimedean && hyperbolic)
@ -877,7 +878,8 @@ EX int getCdata(cell *c, int j) {
}
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)
return getEuclidCdata(pseudocoords(c))->bits;
else if(archimedean && (hyperbolic || sl2))