mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-06-17 02:40:03 +00:00
fixed celldistance in sl2
This commit is contained in:
parent
56a96581eb
commit
6b90261f2f
|
@ -1262,7 +1262,11 @@ EX namespace hybrid {
|
||||||
}
|
}
|
||||||
|
|
||||||
EX int celldistance(cell *c1, cell *c2) {
|
EX int celldistance(cell *c1, cell *c2) {
|
||||||
if(cgi.steps == 0) {
|
if(sl2) {
|
||||||
|
auto w1 = hybrid::get_where(c1), w2 = hybrid::get_where(c2);
|
||||||
|
return PIU (hr::celldistance(w1.first, w2.first));
|
||||||
|
}
|
||||||
|
else if(cgi.steps == 0) {
|
||||||
auto w1 = hybrid::get_where(c1), w2 = hybrid::get_where(c2);
|
auto w1 = hybrid::get_where(c1), w2 = hybrid::get_where(c2);
|
||||||
return PIU (hr::celldistance(w1.first, w2.first)) + abs(w1.second - w2.second);
|
return PIU (hr::celldistance(w1.first, w2.first)) + abs(w1.second - w2.second);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user