1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00
Commit Graph

11 Commits

Author SHA1 Message Date
Arthur O'Dwyer
d163a01b8a Remove USE_UNORDERED_MAP because it has bit-rotted.
Trying to compile with `-DUSE_UNORDERED_MAP` produces lots of compiler errors
like these, because of missing `std::hash` specializations.
Also, `#define unordered_map map` is just evil!

```
./nonisotropic.cpp:875:36: note: in instantiation of template class 'std::__1::unordered_map<hr::nilv::mvec, hr::heptagon *,
      std::__1::hash<hr::nilv::mvec>, std::__1::equal_to<hr::nilv::mvec>, std::__1::allocator<std::__1::pair<const hr::nilv::mvec, hr::heptagon
      *> > >' requested here
    unordered_map<mvec, heptagon*> at;
                                   ^

./nonisotropic.cpp:239:58: note: in instantiation of template class 'std::__1::unordered_map<std::__1::pair<hr::heptagon *, hr::heptagon *>,
      hr::heptagon *, std::__1::hash<std::__1::pair<hr::heptagon *, hr::heptagon *> >, std::__1::equal_to<std::__1::pair<hr::heptagon *,
      hr::heptagon *> >, std::__1::allocator<std::__1::pair<const std::__1::pair<hr::heptagon *, hr::heptagon *>, hr::heptagon *> > >'
      requested here
    unordered_map<pair<heptagon*, heptagon*>, heptagon*> at;
                                                         ^

./nonisotropic.cpp:457:49: error: no matching member function for call to 'iadj'
      while(h1->distance < h2->distance) back = iadj(h2, down) * back, h2 = h2->cmove(down);
                                                ^~~~
cell.cpp:42:15: note: candidate function not viable: no known conversion from 'hr::sn::hrmap_solnih' to 'hr::hrmap' for object argument
  transmatrix iadj(heptagon *h, int d) {
              ^
cell.cpp:41:22: note: candidate function not viable: no known conversion from 'hr::sn::hrmap_solnih' to 'hr::hrmap' for object argument
  struct transmatrix iadj(cell *c, int i) { cell *c1 = c->cmove(i); return adj(c1, c->c.spin(i)); }
                     ^
```
2020-10-19 13:15:29 -04:00
Zeno Rogue
f00ce7f857 magmahep:: fixed spiral 2020-06-08 12:57:34 +02:00
Zeno Rogue
5dcd8d120c magmahep:: hashing for quicker generation 2020-06-08 12:57:13 +02:00
Zeno Rogue
bcdd404e42 magmahep: generalized to not only heptagons, debug disable 2020-06-08 12:25:27 +02:00
Zeno Rogue
295bda1438 style improved 2020-06-08 01:59:34 +02:00
Zeno Rogue
1fdcb42195 style improved 2020-06-08 01:56:53 +02:00
Zeno Rogue
89aa64d52b better centering 2020-06-08 01:54:55 +02:00
Zeno Rogue
f74e2f1ae8 magmahep: switch 2020-06-08 01:52:37 +02:00
Zeno Rogue
9265fe197b fix 2020-06-08 01:52:27 +02:00
Zeno Rogue
dfe78c51d0 draw using hooks_fram not hooks_drawcell 2020-06-08 01:50:09 +02:00
Zeno Rogue
67360d8d5f magmahep 2020-06-08 01:31:21 +02:00