1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-11 03:50:27 +00:00
Commit Graph

255 Commits

Author SHA1 Message Date
Zeno Rogue
5a73510c4f added some guards for MAXMDIM >= 4 and CAP_SOLV 2021-03-30 11:27:48 +02:00
Zeno Rogue
b6e7c355bf mapstream:: export some additional functions 2021-03-16 19:54:57 +01:00
Zeno Rogue
03cbe7f7e3 yet another initialization order error fixed 2021-03-11 10:01:21 +01:00
Zeno Rogue
b921a5a81b drawing tool and shape editor can now be used with texture mode enabled 2021-02-01 11:45:52 +01:00
Zeno Rogue
87d5545428 option -dred to debug drawingtool quickly 2020-12-31 19:11:14 +01:00
Zeno Rogue
d5fc277531 3D drawing 2020-12-31 19:11:14 +01:00
Zeno Rogue
cafc265cc6 vr:: controller ray now extend to the correct distance 2020-12-31 19:11:14 +01:00
Zeno Rogue
b1cb66e468
Merge pull request #129 from Quuxplusone/unordered-map
Remove USE_UNORDERED_MAP because it has bit-rotted.
2020-11-05 20:03:13 +01:00
Zeno Rogue
72a451b139 fixed selecting large regions for copying with mouse 2020-11-05 16:05:06 +01:00
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
a0865998db mapeditor now saves/loads file online 2020-09-21 12:02:23 +02:00
Zeno Rogue
9f1762f0c1 mapstream:: export saveMap, loadMap, and a hook for special saving/loading 2020-09-21 12:02:07 +02:00
Zeno Rogue
3e66b520ba draw editor:: dt_finish 2020-09-21 12:01:22 +02:00
Zeno Rogue
e26f8f5a5b optimized inverses 2020-09-16 23:49:17 +02:00
Zeno Rogue
e74eeca2c3 the 'copy' button in the Map Editor works with the mouse now 2020-09-16 23:49:17 +02:00
Zeno Rogue
8173fc0504 more guards 2020-08-03 23:25:08 +02:00
Zeno Rogue
a66136625d save/load arb geometry 2020-08-02 12:56:43 +02:00
Zeno Rogue
3505f17460 redone modecode 2020-08-02 12:55:37 +02:00
Zeno Rogue
ecbd8806e7 added some missing guards 2020-07-30 02:29:59 +02:00
Zeno Rogue
6e0de94ff1 fixed discrepancy in last 2020-07-28 22:06:14 +02:00
Zeno Rogue
b6872b66a1 mapeditor:: in_front_dist now works with mouseaim sensitivity off 2020-07-28 22:06:14 +02:00
Zeno Rogue
92715e5799 fixed weird shadow of Text button 2020-07-28 22:06:14 +02:00
Zeno Rogue
d5950e7cf9 drawing tool now works in 3D, and if you are drawing inside a movement animation 2020-07-28 22:06:14 +02:00
Zeno Rogue
dcda11d740 fixed a bug while saving/loading INVERSE maps 2020-07-28 22:06:14 +02:00
Zeno Rogue
82f32607e6 MAJOR CHANGE: replaced (transmatrix,band_shift) pair with shiftmatrix 2020-07-28 22:06:14 +02:00
Zeno Rogue
351eda2b5d generalized PSL to ~SL (discrepancies still appear) 2020-07-24 02:30:50 +02:00
Zeno Rogue
7deb98154f fixed save/load text 2020-07-12 21:39:34 +02:00
Zeno Rogue
bcd2a6230f text in drawing tool 2020-07-12 21:39:34 +02:00
Zeno Rogue
3f53698f36 fixed unused variables in mapeditor 2020-07-04 13:33:14 +02:00
Zeno Rogue
89585f004b fixed some guards (in progress) 2020-07-03 14:42:33 +02:00
Zeno Rogue
c5a7b15e98 an option to start in draw editor, and to clear shapes 2020-05-01 12:27:49 +02:00
Zeno Rogue
38d668ee7c text in drawing tool (not yet addable) 2020-04-26 11:01:45 +02:00
Zeno Rogue
009b05c919 reworked some modifier keys 2020-04-19 22:43:16 +02:00
Zeno Rogue
6f6586b3f2
Merge branch 'master' into hooks-naming 2020-04-19 13:39:07 +02:00
Zeno Rogue
4ffbe27784 pen width and paint color are now defined in mapeditor.cpp not texture.cpp 2020-04-18 16:10:56 +02:00
Zeno Rogue
f504eef7df fixed the lacking virtual desctructor 2020-04-18 14:32:54 +02:00
Zeno Rogue
c24658bf38 more drawing tool improvements; no crash drawing tool; restart editors will ask for confirmation 2020-04-17 20:34:49 +02:00
Zeno Rogue
62c6651392 drawing tool improvements 2020-04-17 20:18:50 +02:00
Zeno Rogue
ad233a1e19 drawing tool 2020-04-17 20:04:33 +02:00
Zeno Rogue
0472bf764f moved all projection-related parameters to a special struct; another copy of that struct created for rug 2020-04-17 00:53:58 +02:00
Arthur O'Dwyer
934e3d9a42 Consistently name every hookset with prefix hooks_. NFC.
I'm sure this causes massive merge-conflicts in the non-public code,
but I think it'd be a good idea, if only to avoid confusion between
e.g. `clearMemory` and the-variable-formerly-known-as `clearmemory`.
2020-04-12 10:49:32 -04:00
Zeno Rogue
e4a8b73819 nisot:: nicer precision setting 2020-04-11 15:08:24 +02:00
Arthur O'Dwyer
a0da10b408 Remove extraneous semicolons to quiet pedantic GCC warnings. 2020-03-23 14:38:57 -04:00
Zeno Rogue
b2a6ae304d fixed a bug in loading maps from old versions 2020-03-22 09:48:24 +01:00
Zeno Rogue
2ccb48f765 WFC can be experimented with 2020-03-07 04:47:10 +01:00
Zeno Rogue
27e19ca5ca mapeditor:: canvas_default_wall can be set now 2020-01-28 17:58:55 +01:00
Zeno Rogue
2271a67506 removed the MAX_EDGE limit 2020-01-18 16:03:32 +01:00
Zeno Rogue
31b9310552 fixup mineadj -> mine_adjacency_rule 2019-12-27 11:57:23 +01:00
Zeno Rogue
cb4ce17598 mapeditor:: read/write mineadj 2019-12-27 11:33:22 +01:00
Zeno Rogue
c247936e34 removed the functions queuechr -- use queuestr now 2019-12-26 23:38:28 +01:00