1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-13 00:49:54 +00:00
Commit Graph

225 Commits

Author SHA1 Message Date
Zeno Rogue
90c024822e makeEmpty in Wild West no longer destroys nearby Great Walls 2018-12-11 22:10:53 +01:00
Zeno Rogue
3e87d463d2 fixed the 'special conduct' help in the Haunted Woods 2018-11-11 11:27:36 +01:00
Zeno Rogue
6ec7023501 fixed the crash in Wild West 2018-10-28 03:09:07 +01:00
Zeno Rogue
5fac74b1cb fixed graphical/movement glitches in the minimal quotient space 2018-09-23 16:34:53 +02:00
Zeno Rogue
98e96a20c3 better distribution in hrand and hrandf 2018-09-23 16:34:53 +02:00
Zeno Rogue
9bf8842124 expansion is now computed exactly and for most geometries 2018-09-12 04:23:15 +02:00
Zeno Rogue
6de0f0a8aa instead of nonbitrunc, gp::on and irr::on, there is one variable, variation 2018-08-28 17:17:34 +02:00
Zeno Rogue
7cdf1a353f improved mirrors in various geometries 2018-08-21 15:37:59 +02:00
Zeno Rogue
cd91148459 arcm:: all patterns work 2018-08-20 15:24:44 +02:00
Zeno Rogue
1a6427ba32 some arrays had number bounds while it should have been MAX_EDGE 2018-08-18 17:37:12 +02:00
Zeno Rogue
682f804576 major rewrite: unified the common parts of heptagon and cell via struct connection<T> and struct walker<T> 2018-08-18 00:46:45 +02:00
Zeno Rogue
4f3cc3783a binary tiling 2018-08-09 19:28:53 +02:00
Zeno Rogue
508cecb3b3 the cost of leaving Land of Power now happens before collecting items 2018-08-01 14:04:47 +02:00
Zeno Rogue
1aafd72cd8 fixed a checkmate rule bug with Pikeman and (potentially killed) monster on the way 2018-08-01 12:40:44 +02:00
Zeno Rogue
b3d074161e killing a tortoise with a saved baby now kills the baby too 2018-07-30 09:51:57 +02:00
Zeno Rogue
39e131d985 no more petrification on Round Table 2018-07-30 09:34:48 +02:00
Zeno Rogue
e557dd1303 fixed a crash bug with the 'mark' command when no cell active 2018-07-23 23:35:01 +02:00
Zeno Rogue
f7e5f470dc irr:: celldist and (circular, not yet horocyclic) celldistAlt 2018-07-20 02:58:47 +02:00
Zeno Rogue
a91195bda1 bugfix: Raging Bull / Orb of the Bull / Orb of Horns worked correctly only on hexagons and heptagonsm 2018-07-10 21:51:28 +02:00
Zeno Rogue
508c63d731 calls to rogueviz::mark and rogueviz::fixparam from HR main are now replaced by hooks 2018-07-09 18:59:12 +02:00
Arthur O'Dwyer
f10f5a29b2 Fix a couple of issues in MSVC related to min and max.
MSVC apparently thinks that the result of arithmetic promotions
on an `unsigned:4` bitfield is `unsigned`, not `int`; which then
causes it to fail to deduce whether the `T` in `min<T>` should be
`unsigned` (the type of the LHS) or `int` (the type of the RHS).
Clang and GCC agree that the result of arithmetic promotions on
an `unsigned:4` bitfield should be `int`, so they don't see any
ambiguity here.
2018-07-08 22:19:30 -07:00
Arthur O'Dwyer
eac2ce1168 Tweak this weird hack for the benefit of MSVC.
MSVC wrongly complains about the old version:

    game.cpp(6802): error C2664: 'std::pair<hr::cell *,hr::eItem> std::make_pair<hr::cell*&,hr::eItem&>(_Ty1,_Ty2)':
    cannot convert argument 2 from 'hr::eItem' to 'hr::eItem &'
        with
        [
            _Ty1=hr::cell *&,
            _Ty2=hr::eItem &
        ]

And MSVC wrongly complains about this alternative:

    conformal::findhistory.emplace_back(c2, int(c2->item));
    error: no matching function for call to 'std::pair<hr::cell*, hr::eItem>::pair(hr::cell*&, int)'

And MinGW wrongly complains about these alternatives:

    game.cpp:6801:49: error: cannot bind bitfield 'c2->hr::cell::<anonymous>.hr::gcell::item' to 'hr::eItem&'
     conformal::findhistory.emplace_back(c2, c2->item);
                                             ~~~~^~~~

    game.cpp:6801:47: error: cannot bind bitfield 'c2->hr::cell::<anonymous>.hr::gcell::item' to 'hr::eItem&'
     conformal::findhistory.push_back({c2, c2->item});
                                           ~~~~^~~~
2018-07-08 22:19:20 -07:00
Zeno Rogue
8b35bf6d4b shards collectable in laMirrorOld 2018-07-07 11:04:44 +02:00
Zeno Rogue
a8c55be1d1 Orb of Water + Orb of Empathy no longer works on enemies too 2018-07-03 04:22:35 +02:00
Zeno Rogue
11d9d3de5a renamed the global variable r to hrngen; added a commentr about hrngen; fixed hrandom_shuffle in rogueviz-kohonen 2018-06-30 16:29:37 +02:00
Arthur O'Dwyer
1a93fbcd45 Stop using the deprecated std::random_shuffle, for the benefit of MSVC.
And generalize `hrandom_shuffle` to take an arbitrary `Iter`,
so that passing `vec.begin()` will work even with MSVC's
debug iterators. (Passing `&vec[0]` or `vec.data()` would work
either way, but I'd worry that someone would forget to do that
conscientiously every time.)
2018-06-29 14:20:03 -07:00
Zeno Rogue
941982be98 [10.3i] fixed gaining extra bullets in the Wild West 2018-06-29 13:15:44 +02:00
Zeno Rogue
0f4de1fa9a [10.3i] fixed shooting in the Wild West 2018-06-29 13:14:49 +02:00
Zeno Rogue
53e9cb3ca5 fixed a crash introduced in 10.4h 2018-06-29 12:29:23 +02:00
Zeno Rogue
f1f1098d95 removed some remaining references to sval, fixed the compilation of RogueViz 2018-06-29 12:16:35 +02:00
Zeno Rogue
b01cee20d5 fixed one more bug with pathdata 2018-06-28 14:56:12 +02:00
Zeno Rogue
5e891cf66e fixed the uninitialized variable warnings 2018-06-28 14:30:34 +02:00
Zeno Rogue
92240a0eeb fixed the missing message when picking up orbs from a boat 2018-06-28 13:35:15 +02:00
Zeno Rogue
cf8dffd6b8 fixed bugs with manual celllisters 2018-06-28 13:35:03 +02:00
Zeno Rogue
d11044a80a refactoring: sval/aitmp is no more, celllister(manual) used instead 2018-06-28 12:59:35 +02:00
Zeno Rogue
c6412511f5 fixed a bug in leader movement by using pathdist; also made pathdist more robust 2018-06-28 11:42:25 +02:00
Zeno Rogue
2d6f7d4ed0 five-kill achievement now also counts the 'basic' kill 2018-06-28 10:40:02 +02:00
Zeno Rogue
dd9723dc00 Orb of Freedom is now checked after the Terracotta Warriors 2018-06-28 10:39:35 +02:00
Zeno Rogue
b042a457cc non-player multikills are no longer counted for achievements 2018-06-28 10:39:15 +02:00
Zeno Rogue
87dc7dcd62 renamed the global variable 'which' to 'who_kills_me' for clarity and bug prevention (would be better still to remove it) 2018-06-26 00:56:46 +02:00
Zeno Rogue
92aba5c95b fixed a bug with arrow traps not killing anything (and possibly some other cases) 2018-06-24 01:18:39 +02:00
Zeno Rogue
63869c6d33 renamed the size function to isize 2018-06-22 14:47:24 +02:00
Zeno Rogue
8f8a259992 new quotient geometries 2018-06-22 01:48:46 +02:00
Zeno Rogue
529befd359 no more ambushes when summoning orbs in the Hunting Grounds 2018-06-18 17:48:27 +02:00
Zeno Rogue
d3200253db replacing with an explicit list 2018-06-17 18:32:06 +02:00
Zeno Rogue
35301f0a68 movement animations now work in quotient geometries 2018-06-17 17:51:26 +02:00
Zeno Rogue
95a2f617cf Rock Snakes from the Snake Nest now keep their colors in other lands 2018-06-17 12:15:46 +02:00
Zeno Rogue
c0266a7164 renamed 'near' to 'isnear' ('near' is a non-standard keyword) 2018-06-13 00:42:27 +02:00
Zeno Rogue
50eaba3efd changes from zenorogue/hyperrogue#27 2018-06-12 22:40:06 +02:00
Zeno Rogue
520e5e5dbb pass lambdas to functions by reference, not by value zenorogue/hyperrogue#25 2018-06-12 22:17:08 +02:00