1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

ascii: better warped/normal border

This commit is contained in:
Zeno Rogue 2019-06-17 10:59:02 +02:00
parent c7620974a1
commit e19d7e2e64

View File

@ -4539,12 +4539,12 @@ void draw_grid_at(cell *c, const transmatrix& V) {
}
#endif
else if(isWarped(c) && has_nice_dual()) {
if(pseudohept(c)) for(int t=0; t<c->type; t++)
if(pseudohept(c)) for(int t=0; t<c->type; t++) if(isWarped(c->move(t)))
gridline(V, get_warp_corner(c, t%c->type), get_warp_corner(c, (t+1)%c->type), gridcolor(c, c->move(t)), prec);
}
else {
for(int t=0; t<c->type; t++)
if(c->move(t) && c->move(t) < c)
if(c->move(t) && (c->move(t) < c || isWarped(c->move(t))))
gridline(V, get_corner_position(c, t%c->type), get_corner_position(c, (t+1)%c->type), gridcolor(c, c->move(t)), prec);
}
}