mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
ascii: fixed a bug with grid
This commit is contained in:
parent
e19d7e2e64
commit
40b1e7bab1
@ -5038,6 +5038,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
||||
cw = mirror::reflect(cw);
|
||||
int cmc = (cw.mirrored == mirrored) ? 2 : 1;
|
||||
inmirrorcount += cmc;
|
||||
if(vid.grid) draw_grid_at(c, V);
|
||||
if(cw.mirrored != mirrored) V = V * Mirror;
|
||||
if(cw.spin) V = V * spin(2*M_PI*cw.spin/cw.at->type);
|
||||
drawcell(cw.at, V, 0, cw.mirrored);
|
||||
@ -6451,7 +6452,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
||||
queuechr(V, 1, ch, darkenedby(asciicol, darken), 2);
|
||||
}
|
||||
|
||||
if(vid.grid || (c->land == laAsteroids && !(WDIM == 2 && GDIM == 3))) draw_grid_at(c, V);
|
||||
if(vid.grid || (c->land == laAsteroids && !(WDIM == 2 && GDIM == 3))) if(!inmirrorcount) draw_grid_at(c, V);
|
||||
|
||||
if(onradar && WDIM == 2 && GDIM == 3) addradar(V, ch, darkenedby(asciicol, darken), 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user