Commit Graph

371 Commits

Author SHA1 Message Date
Zeno Rogue 3ed43b8c7d fixed a freeze when computing distance in INVERSE 2024-02-22 20:30:35 +01: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 1d4dac0a50 fixed voronoi crash on clearmemory -- might need better fix 2023-09-14 17:46:11 +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 fd1be4beb8
Merge pull request #341 from Quuxplusone/override
Consistently apply `override` (and not `virtual`) to overriding virtuals
2023-08-22 19:56:17 +02:00
Arthur O'Dwyer 28880f2985 Consistently apply `override` (and not `virtual`) to overriding virtuals
Three functions were missing `override`, triggering `-Wsuggest-override` on Clang.
Many functions had redundant `virtual ... override`.
2023-08-21 10:23:48 -07:00
Arthur O'Dwyer ced3bbcad4 Qualify calls to `format`
C++20 introduces `std::format` and we `using namespace std`,
so some of these would be ambiguous in C++20.
2023-08-21 10:18:44 -07:00
Zeno Rogue c1584e9ece added some missing 'override' 2023-08-16 10:36:16 +02:00
Zeno Rogue 754e774bcf in adj_minefield_cells_full, change forCellIdEx to forCellIdCM 2023-07-11 17:35:54 +02:00
Zeno Rogue 59dd09173a fixed the combinations of Archimedean, fake, and embedding 2023-06-10 10:33:42 +02:00
Zeno Rogue b808d78e7f auxiliary functions adjmod and iadjmod 2023-05-23 20:20:55 +02:00
Zeno Rogue cad46dc16f gp:: fixed wrong gp_adj on embedded 2023-05-01 15:46:42 +02:00
Zeno Rogue 3f1dc8a4c4 introduced new CAP, CAP_PORTALS 2023-04-15 01:30:05 +02:00
Zeno Rogue 511ffe8498 fractal geometry 2023-03-28 22:54:46 +02:00
Zeno Rogue fa9365466c hat:: disable horo and use clueless just in case 2023-03-24 23:19:53 +01:00
Zeno Rogue 3416f09381 fixed a crash in hat reversing 2023-03-23 09:14:06 +01:00
Zeno Rogue bf6220913c no more repetitions in hat minesweeper 2023-03-23 02:04:39 +01:00
Zeno Rogue 9c0ff85a98 alt mine rule for aperiodic 2023-03-23 02:04:15 +01:00
Zeno Rogue b854f68a88 aperiodic hat tiling 2023-03-23 01:37:52 +01:00
Zeno Rogue acfa454114 aperiodic is now distinct from kite::in 2023-03-23 01:37:52 +01:00
Zeno Rogue 85dffdbeff rewritten the embeddings more nicely 2023-01-27 00:27:10 +01:00
Zeno Rogue 4b3bfb9932 euc_in_product 2023-01-06 00:09:12 +01:00
Zeno Rogue f61adc2865 Nil embedding 2022-12-13 19:04:43 +01:00
Zeno Rogue 8c601bb575 fixed spacedist and worms on sphere 2022-12-09 02:33:15 +01:00
Zeno Rogue 3e733ae6e9 Big change: spatial_embedding option 2022-12-09 02:33:15 +01:00
Zeno Rogue 06523e063e used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 2022-11-13 16:22:55 +01:00
Zeno Rogue 841108726c new system for honeycombs in action 2022-08-26 12:27:57 +02:00
Zeno Rogue e86e6267ec the implementation in reg3 can now be used for the cube tiling 2022-08-13 22:42:59 +02:00
Zeno Rogue 6bc3dc9d6f subrule 3D maps implemented 2022-07-13 19:30:36 +02:00
Zeno Rogue c775936970 rulegen:: generalize to work with other maps than arbi 2022-07-12 14:46:30 +02:00
Zeno Rogue 6039c40bc2 fixed adj_minefield_cells_full 2022-06-08 18:00:00 +02:00
Zeno Rogue 5e2a1b6424 fixed a 'pointer used after free' warning 2022-05-28 18:52:10 +02:00
Zeno Rogue c9d90c1c64 now can change the shape of the disk 2022-05-21 17:12:02 +02:00
Zeno Rogue c9d1f8dfeb adj_memo now can keep separate memos for different rules 2022-05-21 17:12:01 +02:00
Zeno Rogue c80d6134e3 adj_minefields_cells_with_orientation upgraded to adj_minefield_cells_full 2022-05-21 16:38:39 +02:00
Zeno Rogue 37f4e400bd made all_disk_cells and all_disk_cells_sorted different, for consistency 2022-05-21 13:09:46 +02:00
Zeno Rogue 793148729b An option to play on a disk (and use bounded space rules). Also renamed 'bounded' flag to 'closed' or similar, and improved Halloween 2022-05-21 13:08:42 +02:00
Zeno Rogue b0c34c4f2c added CAP_RAY guard to intra stuff 2022-05-09 15:09:23 +02:00
Zeno Rogue 78b0324a91 fixed some CAP guards 2022-05-06 19:54:55 +02:00
Zeno Rogue 7adb3dac5a mirrors now flip Alchemist Lab colors (may be a bit unpredictable in minimal quotient) 2022-04-26 16:19:02 +02:00
Zeno Rogue 443ecf0331 intra:: correct cleanup of intra maps 2022-02-27 01:15:45 +01:00
Zeno Rogue b87a47eaaa fixed relative_matrix in crystal 2022-01-08 18:52:02 +01:00
Zeno Rogue b6986879ec fixed a crash when generating daily 2021-10-10 00:40:22 +02:00
Zeno Rogue 9ffdf3aa67 gp:: improved debug 2021-09-30 13:10:52 +02:00
Zeno Rogue 663e334e38 intra:: first version 2021-09-16 21:30:26 +02:00
Zeno Rogue 25dba5a13c do not crash on memory clean in case of precision errors 2021-08-25 12:55:51 +02:00
Zeno Rogue 8d2dcb462e rulegen:: fractal debug removed 2021-08-04 20:48:24 +02:00
Zeno Rogue 932cb7c997 rulegen:: fractal landscapes 2021-08-04 20:21:03 +02:00
Zeno Rogue 3cabddeb65 added is_boundary for &out_of_bounds just in case 2021-07-31 15:14:31 +02:00
Zeno Rogue 8d913f525d altmap height now uses an outside parameter 2021-07-31 15:14:31 +02:00