mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-29 19:40:35 +00:00
fixed the problem where apeirogons got outside boundary
This commit is contained in:
parent
f1ccf0450c
commit
63e855562c
@ -1234,7 +1234,7 @@ struct hrmap_arbi : hrmap {
|
|||||||
hyperpoint get_corner(cell *c, int cid, ld cf) override {
|
hyperpoint get_corner(cell *c, int cid, ld cf) override {
|
||||||
auto& sh = arb::current_or_slided().shapes[arb::id_of(c->master)];
|
auto& sh = arb::current_or_slided().shapes[arb::id_of(c->master)];
|
||||||
int id = gmod(cid, c->type);
|
int id = gmod(cid, c->type);
|
||||||
if(sh.angles[id] <= 0)
|
if(sh.angles[gmod(id-1, c->type)] <= 0)
|
||||||
return sh.vertices[id];
|
return sh.vertices[id];
|
||||||
return normalize(C0 + (sh.vertices[id] - C0) * 3 / cf);
|
return normalize(C0 + (sh.vertices[id] - C0) * 3 / cf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user