1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 22:39:53 +00:00

fixed one place when old cellshape was used

This commit is contained in:
Zeno Rogue 2021-03-25 12:44:25 +01:00
parent ef8db33d7a
commit 0a0cbfcbeb

View File

@ -864,8 +864,8 @@ void celldrawer::draw_grid() {
for(int j=0; j<cgi.face; j++) {
int jj = j == cgi.face-1 ? 0 : j+1;
int jjj = jj == cgi.face-1 ? 0 : jj+1;
hyperpoint a = cgi.cellshape[i*cgi.face+j];
hyperpoint b = cgi.cellshape[i*cgi.face+jj];
hyperpoint a = cgi.cellshape[i][j];
hyperpoint b = cgi.cellshape[i][jj];
if(cgflags & qIDEAL) {
ld mm = cgi.ultra_mirror_part;
if((cgflags & qULTRA) && !reg3::ultra_mirror_in())
@ -875,9 +875,9 @@ void celldrawer::draw_grid() {
gridline(V, a, b, gridcolor(c, c->move(t)), prec);
if(reg3::ultra_mirror_in()) {
hyperpoint a = cgi.cellshape[i*cgi.face+j];
hyperpoint b = cgi.cellshape[i*cgi.face+jj];
hyperpoint d = cgi.cellshape[i*cgi.face+jjj];
hyperpoint a = cgi.cellshape[i][j];
hyperpoint b = cgi.cellshape[i][jj];
hyperpoint d = cgi.cellshape[i][jjj];
auto& mm = cgi.ultra_mirror_part;
tie(a, d) = make_pair(normalize(lerp(a, b, mm)), normalize(lerp(d, b, mm)));
gridline(V, a, d, stdgridcolor, prec);