1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-05 17:30:16 +00:00

product:: lands in S2xE

This commit is contained in:
Zeno Rogue
2019-09-10 09:21:46 +02:00
parent 0785d970f1
commit e8c7285cc2
4 changed files with 65 additions and 14 deletions

View File

@@ -483,7 +483,8 @@ EX int getHemisphere(heptagon *h, int which) {
EX int getHemisphere(cell *c, int which) {
if(euwrap) return 0;
if(WDIM == 3) {
if(hybri) { auto d = hybrid::get_where(c); return PIU(getHemisphere(d.first, which)); }
if(WDIM == 3 && !hybri) {
hyperpoint p = tC0(calc_relative_matrix(c, currentmap->gamestart(), C0));
return int(p[which] * 6 + 10.5) - 10;
}