mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-24 05:17:17 +00:00
fixed one place when old cellshape was used
This commit is contained in:
parent
ef8db33d7a
commit
0a0cbfcbeb
@ -864,8 +864,8 @@ void celldrawer::draw_grid() {
|
|||||||
for(int j=0; j<cgi.face; j++) {
|
for(int j=0; j<cgi.face; j++) {
|
||||||
int jj = j == cgi.face-1 ? 0 : j+1;
|
int jj = j == cgi.face-1 ? 0 : j+1;
|
||||||
int jjj = jj == cgi.face-1 ? 0 : jj+1;
|
int jjj = jj == cgi.face-1 ? 0 : jj+1;
|
||||||
hyperpoint a = cgi.cellshape[i*cgi.face+j];
|
hyperpoint a = cgi.cellshape[i][j];
|
||||||
hyperpoint b = cgi.cellshape[i*cgi.face+jj];
|
hyperpoint b = cgi.cellshape[i][jj];
|
||||||
if(cgflags & qIDEAL) {
|
if(cgflags & qIDEAL) {
|
||||||
ld mm = cgi.ultra_mirror_part;
|
ld mm = cgi.ultra_mirror_part;
|
||||||
if((cgflags & qULTRA) && !reg3::ultra_mirror_in())
|
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);
|
gridline(V, a, b, gridcolor(c, c->move(t)), prec);
|
||||||
|
|
||||||
if(reg3::ultra_mirror_in()) {
|
if(reg3::ultra_mirror_in()) {
|
||||||
hyperpoint a = cgi.cellshape[i*cgi.face+j];
|
hyperpoint a = cgi.cellshape[i][j];
|
||||||
hyperpoint b = cgi.cellshape[i*cgi.face+jj];
|
hyperpoint b = cgi.cellshape[i][jj];
|
||||||
hyperpoint d = cgi.cellshape[i*cgi.face+jjj];
|
hyperpoint d = cgi.cellshape[i][jjj];
|
||||||
auto& mm = cgi.ultra_mirror_part;
|
auto& mm = cgi.ultra_mirror_part;
|
||||||
tie(a, d) = make_pair(normalize(lerp(a, b, mm)), normalize(lerp(d, b, mm)));
|
tie(a, d) = make_pair(normalize(lerp(a, b, mm)), normalize(lerp(d, b, mm)));
|
||||||
gridline(V, a, d, stdgridcolor, prec);
|
gridline(V, a, d, stdgridcolor, prec);
|
||||||
|
Loading…
Reference in New Issue
Block a user