1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 18:10:35 +00:00
Commit Graph

272 Commits

Author SHA1 Message Date
Zeno Rogue
6db94b134d intra:: optimize saved maps 2021-10-10 00:40:22 +02:00
Zeno Rogue
ef67ed4a75 mapstream:: save sol correctly 2021-10-10 00:40:22 +02:00
Zeno Rogue
4aa0dcf2fa mapstream:: correctly save coxeter and subcube-based variations 2021-10-10 00:40:22 +02:00
Zeno Rogue
2e5b46ff45 mapeditor:: save plevel_factor 2021-10-10 00:40:22 +02:00
Zeno Rogue
b88ec8550e mimics destroyed correctly in the map editor 2021-09-30 13:16:22 +02:00
Zeno Rogue
a5228b06a5 mapeditor:: loading maps now sets the default settings like pmodel for 3D 2021-09-17 12:20:15 +02:00
Zeno Rogue
23a860d405 intra:: intra maps are now saved correctly 2021-09-17 12:00:53 +02:00
Zeno Rogue
7a7198c45a mapeditor:: 3D field quotients are now saved correctly 2021-09-17 11:56:18 +02:00
Zeno Rogue
0dfa361453 arb:: converted and rulegen status is now saved in save_geometry 2021-07-31 15:14:31 +02:00
Zeno Rogue
00146174da 'edit cell values' option now visible in the map editor 2021-06-17 09:44:48 +02:00
Zeno Rogue
e6dd27f5bf dice:: now work correctly in non-orientable spaces 2021-06-17 09:44:48 +02:00
Zeno Rogue
50a9c78343 load/save/place dice in the map editor 2021-06-01 13:07:56 +02:00
Zeno Rogue
0f767e16b6 XLAT refactor continued 2021-05-23 16:00:50 +02:00
Zeno Rogue
c0002da574 refactored some XLAT calls for automated analysis, fixing some bugs on the way 2021-05-23 16:00:50 +02:00
Zeno Rogue
056419288c enabling canvas now automatically enables ls::single 2021-04-23 20:09:23 +02:00
Zeno Rogue
e47f4fbba5 throw exception in mapeditor while saving with no parent 2021-04-07 18:15:58 +02:00
Zeno Rogue
0af2877cc1 improved hooks_loadmap system so that it is known if extra modules are to be loaded; also added CLI option -save 2021-04-07 18:13:45 +02:00
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