1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-18 19:24:48 +00:00
Commit Graph

33 Commits

Author SHA1 Message Date
Zeno Rogue
89a46a8cd1 more constexpr fixes 2023-10-28 10:04:15 +02:00
Zeno Rogue
8e55cc9ebd movei(nullptr_t) not compiling on OSX Clang 2023-10-28 09:51:27 +02:00
Zeno Rogue
f8fb7d5950 locations:: null movei 2023-10-28 09:51:27 +02:00
Zeno Rogue
845237c756
Merge pull request #343 from Quuxplusone/constexpr
Change `static const` to `static constexpr` wherever possible
2023-10-19 12:31:56 +02:00
Zeno Rogue
ec4b02d754 ls:: Hive in H/V 2023-09-18 15:41:53 +02:00
Arthur O'Dwyer
62629f3e70 Change static const to static constexpr wherever possible
Since we require C++11, most of these consts can be constexpr.

Two `static const ld` remain non-compile-time-evaluable because
they depend on the runtime `log` function. One `static const cld`
remains non-compile-time because `std::complex<T>` doesn't become
constexpr until C++14.
2023-08-23 09:47:28 -08:00
Zeno Rogue
a8412ac5f0 increased the value of special-move constants to >100 so that the limit on sides is indeed 120 2022-04-24 22:57:35 +02:00
Zeno Rogue
5e87f08f54 walker::peek() is now const 2021-08-22 23:34:19 +02:00
Zeno Rogue
d33fc20c6b movei constructor now calls cmove, not move 2021-08-08 19:43:58 +02:00
Zeno Rogue
c0f91c0ea9 fixed a typo in comment 2021-07-31 15:13:44 +02:00
Jesse Ruderman
98fd1f9c47 Use offsetof to reduce UB 2021-07-11 07:45:55 -07:00
Zeno Rogue
e37fa65247 arcm:: fixed the possible crash on deleting arcms with large cells, because of the confusion of cdata 2021-07-04 11:00:38 +02:00
Zeno Rogue
d07662d11c fixed the warning (-Warray-bounds) 2021-07-04 09:53:29 +02:00
Zeno Rogue
7b38fc4de1 fixed the direction setup by Orb of Chaos 2021-06-17 09:44:47 +02:00
Zeno Rogue
d951a84cc6 movei::dir_force function 2021-05-17 14:23:20 +02:00
Zeno Rogue
e13172f9ab fixed crashes caused by missing rev_dir 2020-12-25 06:07:30 +01:00
Zeno Rogue
63f895974e improved the checkmove.cpp, also works for golems now 2020-11-05 14:24:01 +01:00
Zeno Rogue
b79eb4de1d fixed cellcount 2020-04-06 09:26:59 +02:00
Zeno Rogue
0412f077e6 added/fixed some \brief descriptions 2020-03-27 21:47:09 +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
7e75c28fc1 Frogs implemented 2020-03-07 04:47:10 +01:00
Zeno Rogue
2271a67506 removed the MAX_EDGE limit 2020-01-18 16:03:32 +01:00
Zeno Rogue
bf584b5429 more movei 2019-11-22 18:48:51 +01:00
Zeno Rogue
e6853e6540 old moveMonster removed 2019-11-22 18:19:22 +01:00
Zeno Rogue
9521b622e1 movei from cellwalker, old empathyMove removed 2019-11-22 18:12:50 +01:00
Zeno Rogue
6d44105fef more movei. Also animated Friendly Ivy growth 2019-11-22 18:07:16 +01:00
Zeno Rogue
2172ca6fd7 movei used in more places, also improved push in shmup 2019-11-22 17:31:23 +01:00
Zeno Rogue
8ddd95d44e locations improvement 2019-11-22 17:02:40 +01:00
Zeno Rogue
c6bf25b5b6 location:: movei structure 2019-11-22 16:29:53 +01:00
Zeno Rogue
fd67768234 reverse_directions for heptagons 2019-09-26 13:23:44 +02:00
Zeno Rogue
9647cbd47e added #include hyper.h to all cpp files 2019-09-12 22:50:16 +02:00
Zeno Rogue
50e4990a76 improvements in documentation 2019-09-12 22:50:13 +02:00
Zeno Rogue
8b1c7bffe4 initial reformatting of comments for Doxygen 2019-09-12 22:50:13 +02:00