1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-20 23:54:49 +00:00

refactored mdEqui

This commit is contained in:
Zeno Rogue
2017-11-13 11:26:21 +01:00
parent 19f12e3068
commit a19d4d568b
5 changed files with 11 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
H = H / zlev;
}
if(pmodel == mdEquidistant || pmodel == mdEquiarea) {
if(mdEqui()) {
ld rad = sqrt(H[0] * H[0] + H[1] * H[1]);
ld d = hdist0(H);
@@ -166,6 +166,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
if(zlev != 1 && vid.goteyes)
ret[2] = geom3::factor_to_lev(zlev);
ghcheck(ret,H);
return;
}