1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00
Commit Graph

233 Commits

Author SHA1 Message Date
Zeno Rogue
99f85aecfd option disable_bigstuff for some experiments 2021-09-30 13:22:12 +02:00
Zeno Rogue
b88ec8550e mimics destroyed correctly in the map editor 2021-09-30 13:16:22 +02:00
Zeno Rogue
a6151f185f refactored whirlline loop detection 2021-08-08 19:13:09 +02:00
Zeno Rogue
025893e946 cleaned up where summoned creature appears for Orb of Life and Orb of Friendship 2021-08-08 19:04:58 +02:00
Zeno Rogue
ced16a2f4e sword:: fixed a possible crash on incomplete maps 2021-07-31 15:13:44 +02:00
Jesse Ruderman
123994bdc2 Fix UB when sorting empty vecs 2021-07-11 20:54:25 -07:00
Jesse Ruderman
c67f9b72af Cave transformation is fairer to players 2021-07-10 02:32:13 -07:00
Zeno Rogue
296d2d10e3
Merge pull request #196 from jruderman/f4
Fix crash after using Orb of Domination
2021-07-10 09:45:09 +02:00
Jesse Ruderman
15f90f194e Kraken Tentacle attacks now obey Warp restrictions 2021-07-09 21:20:30 -07:00
Jesse Ruderman
45b6317e69 Fix crash after using Orb of Domination 2021-07-09 20:51:07 -07:00
Zeno Rogue
4b3f72cc56 3D variations: subcubes 2021-07-07 01:48:20 +02:00
Zeno Rogue
ca6eb9d8ef swap_data is now a general template function, not in tortoise 2021-06-17 09:44:47 +02:00
Zeno Rogue
7f15f3b46f Angry Dice are now hot and destroy living walls 2021-06-01 13:07:56 +02:00
Zeno Rogue
1fb1f614de Raging Bulls generated from Herd Bulls crashing into walls offscreen no longer permanently block the way when offscreen 2021-06-01 13:07:55 +02:00
Zeno Rogue
a99be21653 clearing in gBinaryTiling 2021-04-25 11:10:09 +02:00
Zeno Rogue
4b1b0516f3 choice of the land structure 2021-04-11 22:15:40 +02:00
Zeno Rogue
d96f92c0f8 support for portal spaces 2021-02-18 16:16:34 +01:00
Zeno Rogue
a4373e5328 1 not 1234 2021-02-07 22:55:11 +01:00
Zeno Rogue
c57566f9da highlights in special modes 2021-02-07 22:55:11 +01:00
Zeno Rogue
0c0ca95897 fixed the 4xStabber and Princess achievements 2021-02-07 22:55:10 +01:00
Zeno Rogue
9c9afceb41 Princess hug animation 2020-12-26 18:09:09 +01:00
Zeno Rogue
1f5951dbee fixed a crash bug when collecting an Orb of Safety via Orb of Water 2020-12-26 17:16:51 +01:00
Zeno Rogue
0f1c8ec102 create a fake info for an unknown princess 2020-12-26 17:16:22 +01:00
Zeno Rogue
e13172f9ab fixed crashes caused by missing rev_dir 2020-12-25 06:07:30 +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
63f895974e improved the checkmove.cpp, also works for golems now 2020-11-05 14:24:01 +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
d64c5e338c extra guards 2020-10-15 16:33:52 +02:00
Zeno Rogue
b72414ae2a halloween: dragons only in sphere 2020-09-17 04:36:36 +02:00
Zeno Rogue
68fa0c83e7 fixed Halloween 2020-09-17 04:35:49 +02:00
Zeno Rogue
1f1e7d9bbf inverse tessellation operators 2020-07-12 21:39:34 +02:00
Arthur O'Dwyer
f2b7746c1b Move all defaulting-of-CAP_FOO to sysconfig.h.
- The phrase `#ifdef CAP_` should never appear anywhere.

- The phrase `#ifndef CAP_` should appear only in sysconfig.h.

- The phrases `#if CAP_` and `#if !CAP_` may appear wherever,
    as long as "sysconfig.h" is included first.

The rules for `CAP_FOO` equally apply to `ISFOO`.

There are many one-off macros still tested with `#ifdef`,
including `HAVE_ACHIEVEMENTS`, `PRINT_ACHIEVEMENTS`,
`FAKEWEB`, `FAKE_SDL`, `EASY`, and `WHATEVER`. I don't
have much grasp on what these are used for or how they're
configured, so I'm leaving them alone.
2020-05-03 15:12:12 -04:00
Zeno Rogue
6f6586b3f2
Merge branch 'master' into hooks-naming 2020-04-19 13:39:07 +02:00
Zeno Rogue
85a404bfe8 CA awards Orb of Aether automatically 2020-04-12 20:38:17 +02:00
Zeno Rogue
11d119766d CA for infinite 2020-04-12 20:33:53 +02:00
Zeno Rogue
43e1204e18 CLI option -carun 2020-04-12 20:33:31 +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
a7347bdd20 Blizzard special heat rules are now only active if both lands are Blizzard 2020-04-06 09:36:57 +02:00
Zeno Rogue
97fc244ba9 changed some achievement_gain to achievement_gain_once (this also fixes achievements awarded too soon) 2020-04-06 09:22:05 +02:00
Arthur O'Dwyer
7a706478dc Add a helper function voidp to silence GCC warnings about %p.
We must fully qualify calls to `hr::voidp` because the expression
`voidp(x)` is ambiguous or worse. "/usr/include/zconf.h" defines
`voidp` in the global namespace as a typedef for `void*`.
We don't want an unsafe functional-style cast to `void*`;
we want to call our nice safe helper function. So we qualify the name.
2020-03-23 14:39:28 -04:00
Zeno Rogue
11447fcb7b tortoise:: shading now can be disabled 2020-03-22 09:46:13 +01:00
Zeno Rogue
0381999842 Orb of Chaos no longer despecializes Tortoises 2020-03-12 10:22:46 +01:00
Zeno Rogue
40d0c7e5e2 fixed Swords moving randomly when having Orb of the Frog 2020-03-07 23:47:31 +01:00
Zeno Rogue
50123e42c7 fixed kraken head 2020-03-07 04:47:11 +01:00
Zeno Rogue
9ded3f8c7c changes:: fixed Galapagos 2020-03-07 04:47:10 +01:00
Zeno Rogue
10f63743ab elec: charged walls are destroyed if they are adjacent to grounded walls 2020-03-07 04:47:10 +01:00
Zeno Rogue
477b0e4ed4 changes:: fixed mimics 2020-03-07 04:47:10 +01:00
Zeno Rogue
44c79a468c comments about imputed and direct 2020-03-07 04:47:10 +01:00
Zeno Rogue
b0eb4e816b location.cpp now defines constants global_distance_limit and iteration_limit 2020-03-07 04:47:10 +01:00
Zeno Rogue
c1c4cea31f replaced clearing::buggyplant with bpdata::buggy 2020-03-07 04:47:10 +01:00