mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
fixed curr_dist and horocycles in Canvas for Euclidedan
This commit is contained in:
parent
e10f6564a6
commit
ce390de0d2
@ -44,7 +44,7 @@ int celldistAltRelative(cell *c) {
|
||||
}
|
||||
|
||||
int euclidAlt(short x, short y) {
|
||||
if(specialland == laTemple || specialland == laClearing) {
|
||||
if(among(specialland, laTemple, laClearing, laCanvas)) {
|
||||
if(euclid6)
|
||||
return max(int(x), x+y);
|
||||
else if(PURE)
|
||||
@ -1169,7 +1169,7 @@ void moreBigStuff(cell *c) {
|
||||
if(d <= PRADIUS1) generateAlts(c->master);
|
||||
}
|
||||
|
||||
if(c->land == laCanvas && c->master->alt)
|
||||
if(c->land == laCanvas && !eubinary && c->master->alt)
|
||||
generateAlts(c->master);
|
||||
|
||||
if(c->land == laStorms)
|
||||
|
3
cell.cpp
3
cell.cpp
@ -1063,9 +1063,6 @@ int celldist(cell *c) {
|
||||
|
||||
#define ALTDIST_ERROR 90000
|
||||
|
||||
// defined in 'game'
|
||||
int euclidAlt(short x, short y);
|
||||
|
||||
int celldistAlt(cell *c) {
|
||||
if(masterless) {
|
||||
if(torus) return celldist(c);
|
||||
|
@ -416,7 +416,7 @@ int curr_dist(cell *c) {
|
||||
case dfWorld:
|
||||
if(!mod_allowed() && !among(c->land, laOcean, laIvoryTower, laEndorian, laDungeon, laTemple, laWhirlpool, laCanvas))
|
||||
return 0;
|
||||
if(c->master->alt) return celldistAlt(c);
|
||||
if(eubinary || c->master->alt) return celldistAlt(c);
|
||||
return inmirror(c) ? (c->landparam & 255) : c->landparam;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user