mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-25 22:52:49 +00:00
fixed some potential issues with arb
This commit is contained in:
parent
6c96349714
commit
554567e0cf
@ -1376,7 +1376,7 @@ EX int wallchance(cell *c, bool deepOcean) {
|
|||||||
/** should we generate the horocycles in the current geometry? */
|
/** should we generate the horocycles in the current geometry? */
|
||||||
EX bool horo_ok() {
|
EX bool horo_ok() {
|
||||||
if(INVERSE) return false;
|
if(INVERSE) return false;
|
||||||
return hyperbolic && !bt::in() && !arcm::in() && !kite::in() && !experimental && !hybri;
|
return hyperbolic && !bt::in() && !arcm::in() && !kite::in() && !experimental && !hybri && !arb::in();
|
||||||
}
|
}
|
||||||
|
|
||||||
EX bool gp_wall_test() {
|
EX bool gp_wall_test() {
|
||||||
|
4
cell.cpp
4
cell.cpp
@ -477,7 +477,7 @@ EX int celldist(cell *c) {
|
|||||||
#if CAP_IRR
|
#if CAP_IRR
|
||||||
if(IRREGULAR) return irr::celldist(c, false);
|
if(IRREGULAR) return irr::celldist(c, false);
|
||||||
#endif
|
#endif
|
||||||
if(arcm::in() || ctof(c)) return c->master->distance;
|
if(arcm::in() || ctof(c) || arb::in()) return c->master->distance;
|
||||||
#if CAP_GP
|
#if CAP_GP
|
||||||
if(INVERSE) {
|
if(INVERSE) {
|
||||||
cell *c1 = gp::get_mapped(c);
|
cell *c1 = gp::get_mapped(c);
|
||||||
@ -1116,7 +1116,7 @@ EX int celldistance(cell *c1, cell *c2) {
|
|||||||
return euc::cyldist(euc2_coordinates(c1), euc2_coordinates(c2));
|
return euc::cyldist(euc2_coordinates(c1), euc2_coordinates(c2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(arcm::in() || quotient || sn::in() || (kite::in() && euclid) || experimental || sl2 || nil)
|
if(arcm::in() || quotient || sn::in() || (kite::in() && euclid) || experimental || sl2 || nil || arb::in())
|
||||||
return clueless_celldistance(c1, c2);
|
return clueless_celldistance(c1, c2);
|
||||||
|
|
||||||
if(S3 >= OINF) return inforder::celldistance(c1, c2);
|
if(S3 >= OINF) return inforder::celldistance(c1, c2);
|
||||||
|
@ -383,6 +383,7 @@ EX pair<int, bool> fieldval(cell *c) {
|
|||||||
EX int fieldval_uniq(cell *c) {
|
EX int fieldval_uniq(cell *c) {
|
||||||
if(fake::in()) return FPIU(fieldval_uniq(c));
|
if(fake::in()) return FPIU(fieldval_uniq(c));
|
||||||
if(experimental) return 0;
|
if(experimental) return 0;
|
||||||
|
else if(arb::in()) return arb::id_of(c->master);
|
||||||
else if(hybri) {
|
else if(hybri) {
|
||||||
auto c1 = hybrid::get_where(c).first;
|
auto c1 = hybrid::get_where(c).first;
|
||||||
return PIU ( fieldval_uniq(c1) );
|
return PIU ( fieldval_uniq(c1) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user