mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-23 06:20:09 +00:00
gp:: correct grid display
This commit is contained in:
parent
2b65f4538f
commit
699798a968
17
graph.cpp
17
graph.cpp
@ -4832,7 +4832,22 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
||||
|
||||
int prec = sphere ? 3 : 1;
|
||||
|
||||
if(nonbitrunc) {
|
||||
if(gp::on) {
|
||||
vid.linewidth *= gp::scale;
|
||||
if(isWarped(c) && has_nice_dual()) {
|
||||
if(pseudohept(c)) for(int t=0; t<c->type; t++)
|
||||
queueline(V * gp::get_corner_position(c, t%c->type, 2),
|
||||
V * gp::get_corner_position(c, (t+1)%c->type, 2),
|
||||
gridcolor(c, c->mov[t]), prec);
|
||||
}
|
||||
else for(int t=0; t<c->type; t++)
|
||||
if(c->mov[t] && c->mov[t] < c)
|
||||
queueline(V * gp::get_corner_position(c, t),
|
||||
V * gp::get_corner_position(c, (t+1)%c->type),
|
||||
gridcolor(c, c->mov[t]), prec);
|
||||
vid.linewidth /= gp::scale;
|
||||
}
|
||||
else if(nonbitrunc) {
|
||||
double x = hcrossf;
|
||||
for(int t=0; t<S7; t++)
|
||||
if(c->mov[t] && c->mov[t] < c)
|
||||
|
Loading…
x
Reference in New Issue
Block a user