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

63 Commits

Author SHA1 Message Date
Zeno Rogue
cfbd5f830c fixed some warnings and errors with ll to int assignment 2020-04-06 09:13:20 +02:00
Zeno Rogue
1b9cdab98c added missing CAP_COMMANDLINE guards 2020-04-06 09:13:20 +02:00
Zeno Rogue
233adddd36 moved reg3 values to cgi 2020-04-05 10:58:56 +02:00
Zeno Rogue
cad1bccd1a fixed a crash in some horospherical tessellations 2020-03-31 18:59:16 +02:00
Arthur O'Dwyer
14c098eaf9 Add whitespace to silence Clang's -Wmisleading-indentation. NFC.
./fieldpattern.cpp:440:5: error: misleading indentation;
    statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
        if(isize(res) > limitp) return res;
        ^
2020-03-23 15:07:46 -04:00
Zeno Rogue
e70915de9d fixed distance computation in 3D fieldquotient 2020-03-21 10:14:54 +01:00
Zeno Rogue
fba1953f63 fixed getcurrfp in horospherical hyperbolic 2020-02-07 19:44:44 +01:00
Zeno Rogue
602ee9df0c fixed rotspace 2020-02-07 18:34:19 +01:00
Zeno Rogue
f05fa60400 added MAXMDIM guards 2020-01-29 18:18:51 +01:00
Zeno Rogue
fa64573971 fixed the thread locking 2020-01-28 17:58:55 +01:00
Zeno Rogue
c556d21434 renamed/documented/improved the rule generators, and the rules now include centers for all fieldvals 2020-01-28 17:58:55 +01:00
Zeno Rogue
b58138cd94 fieldpattern:: load found solutions from shstreams 2020-01-28 17:58:55 +01:00
Zeno Rogue
9e2a9604bd fieldpattern: fixed Prime in 536, also added small quotients as comments in 435 and 534 2020-01-25 19:23:37 +01:00
Zeno Rogue
29a2cb58ef fixed CAP_THREAD==0 2020-01-19 00:33:57 +01:00
Zeno Rogue
fbd978598e getcurrfp returns fp_invalid for other quotient spaces 2020-01-18 17:16:16 +01:00
Zeno Rogue
cb338ca607 changed mutex to recursive_mutex 2020-01-16 19:19:44 +01:00
Zeno Rogue
5382038c4e field quotient discovery 2020-01-16 17:13:57 +01:00
Zeno Rogue
7038df605c field:: quick distance computations in 3D 2020-01-16 17:13:57 +01:00
Zeno Rogue
19769feaaf fieldpattern:: error detection in EASY 2020-01-16 17:13:47 +01:00
Zeno Rogue
b12e1a71dd fieldpattern:: matrix now based on std::array 2020-01-16 17:13:47 +01:00
Zeno Rogue
59a9605b13 arb::relative_matrix 2020-01-16 17:13:37 +01:00
Zeno Rogue
6331ca1e1d field:: {3,12} base available 2019-11-30 18:03:00 +01:00
Zeno Rogue
82083ba83d fieldpattern:: made the prime lists equal -- 6 primes 2019-11-17 13:46:42 +01:00
Zeno Rogue
6f541c0a3e field quotient generalized 2019-11-17 13:35:07 +01:00
Zeno Rogue
362b11a383 more elegant fpattern::solve() 2019-11-17 11:12:06 +01:00
Zeno Rogue
848eb8f48b export everything: modules compiled separately 2019-09-12 22:50:16 +02:00
Zeno Rogue
82f24b4b6c exporting necessary stuff all over (in progress) 2019-09-12 22:50:16 +02:00
Zeno Rogue
fedb170b55 struct fpattern exported 2019-09-12 22:50:16 +02:00
Zeno Rogue
9647cbd47e added #include hyper.h to all cpp files 2019-09-12 22:50:16 +02:00
Zeno Rogue
5a45c1c062 fixed a crash due to not using PIU in fieldval_uniq_rand 2019-09-12 22:50:14 +02:00
Zeno Rogue
8b1c7bffe4 initial reformatting of comments for Doxygen 2019-09-12 22:50:13 +02:00
Zeno Rogue
0ef57dde15 further cleanup 2019-09-12 22:50:13 +02:00
Zeno Rogue
e1194ff588 more header cleanup 2019-09-12 22:50:12 +02:00
Zeno Rogue
df3e21b310 debug cleanup 2019-09-12 22:50:00 +02:00
Zeno Rogue
f2b0f33496 2d3d:: fixed Field Pattern 2019-09-12 22:43:02 +02:00
Zeno Rogue
1c4d86e0e9 3D graphics in 2D (first commit) 2019-09-12 22:43:01 +02:00
Zeno Rogue
372a9503b6 3d:: fieldpattern now works in 3D 2019-09-12 22:38:46 +02:00
?
c5a771c888 CAP_FIELD part 1 2019-09-12 22:38:39 +02:00
Zeno Rogue
fd9fca6129 redesigned the Experiment with Geometry menu 2019-02-08 16:55:00 +01:00
Zeno Rogue
ef3310f764 in fieldpattern used const MAXDIST instead of 60; also increased it to 120 2018-12-11 22:10:53 +01:00
Zeno Rogue
f7db0feef0 currfp returns fp_invalid when fp is not known, and does not use it 2018-12-11 22:10:53 +01: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
Arthur O'Dwyer
62db7ee250 Eliminate VLAs for the benefit of MSVC. 2018-06-29 14:13:59 -07:00
Zeno Rogue
030377583c changed the 'quotient==2' tests to 'geometry == gFieldQuotient' 2018-06-25 23:14:46 +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
Arthur O'Dwyer
db3e5d1009 Minor fixes for Mac and MinGW.
Eliminate a format-string warning by using less template magic:
https://stackoverflow.com/questions/12573968/how-to-use-gccs-printf-format-attribute-with-c11-variadic-templates

Fix one `%Ld` in `rogueviz.cpp` that should have been `%lld`.

Rename `savepng.c` into `savepng.cpp` so that we don't have to care about
the system's C compiler; it builds fine using the same C++ options as
HyperRogue itself.

Figure out how to get `-DCAP_PNG` and `-DCAP_ROGUEVIZ` working on Mac,
and document them.
Assume that roughly the same things should also work on MinGW.

Consistency on `STDSIZE`, even though it doesn't suffice for C++17 conformance.
It *almost* suffices; the one place where Clang still complains even with
`-std=c++17 -DSTDSIZE -Wno-sign-compare` is here:

    ./fieldpattern.cpp:757:51: error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'int' in initializer list
          [-Wc++11-narrowing]
          ex.primes.emplace_back(primeinfo{nextprime, size(fp.matrices) / S7, (bool) fp.wsquare});
                                                      ^~~~~~~~~~~~~~~~~~~~~~

So, we fix that up too, in this patch.
2018-06-16 23:20:50 -07:00
Zeno Rogue
4c619e60dd moved all the HyperRogue stuff except RogueViz to namespace 'hr' -- useful when using hr as a library 2018-06-11 01:58:31 +02:00
Zeno Rogue
39db828a38 Fixed the bugs with computing fieldpattern not in hyperbolic geometry (memory error + canvas crashes) 2018-05-09 21:32:31 +02:00
Zeno Rogue
a72dca5bc9 more exports 2018-05-04 02:40:46 +02:00