mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-04 14:30:35 +00:00
fixed a serious bug (it caused crashes in Solv racing, but it could cause other issues too)
This commit is contained in:
parent
14d2237c01
commit
95a032eeb6
4
cell.cpp
4
cell.cpp
@ -39,7 +39,9 @@ struct hrmap {
|
|||||||
virtual struct transmatrix adj(cell *c, int i) { return adj(c->master, i); }
|
virtual struct transmatrix adj(cell *c, int i) { return adj(c->master, i); }
|
||||||
virtual struct transmatrix adj(heptagon *h, int i);
|
virtual struct transmatrix adj(heptagon *h, int i);
|
||||||
struct transmatrix iadj(cell *c, int i) { cell *c1 = c->cmove(i); return adj(c1, c->c.spin(i)); }
|
struct transmatrix iadj(cell *c, int i) { cell *c1 = c->cmove(i); return adj(c1, c->c.spin(i)); }
|
||||||
transmatrix iadj(heptagon *h, int d) { return adj(h->cmove(d), h->c.spin(d)); }
|
transmatrix iadj(heptagon *h, int d) {
|
||||||
|
heptagon *h1 = h->cmove(d); return adj(h1, h->c.spin(d));
|
||||||
|
}
|
||||||
virtual void draw() {
|
virtual void draw() {
|
||||||
printf("undrawable\n");
|
printf("undrawable\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user