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

1450 Commits

Author SHA1 Message Date
Zeno Rogue
825ef9dfd2 changed size to isize in RogueViz 2018-06-25 23:02:41 +02:00
Zeno Rogue
91690f326f
Merge pull request #40 from Quuxplusone/langen2
Refactor to improve the compile time of "langen.cpp"
2018-06-25 23:02:23 +02:00
Zeno Rogue
1286b92772 fixed the quotient flag for Zebra to include qSMALL 2018-06-25 23:02:03 +02:00
Zeno Rogue
0843bef893 an option to display full floors 2018-06-25 23:01:39 +02:00
Zeno Rogue
40e9c6687c new commandline options: -fsh and -noshadow 2018-06-25 22:59:29 +02:00
Zeno Rogue
87a0d87f04
Merge pull request #41 from AMDmi3/patch-2
Fix build by specifying correct savepng.cpp file name
2018-06-25 22:55:48 +02:00
Arthur O'Dwyer
06f4ba16ed Fix an apparent typo-bug in "inventory.cpp" 2018-06-25 12:52:21 -07:00
Dmitry Marakasov
bde60ca7bd
Fix build by specifying correct savepng.cpp file name 2018-06-25 18:13:30 +03:00
Arthur O'Dwyer
dd1a842285 Refactor to improve the compile time of "langen.cpp".
$ time c++ -std=c++11 -march=native -DMAC -I/usr/local/include -DCAP_PNG=0 -O0 -w langen.cpp -o langen
    real  0m3.174s
    user  0m2.985s
    sys   0m0.179s
2018-06-23 18:26:47 -07:00
Arthur O'Dwyer
172d2c2d1b Miscellaneous code cleanup on "langen.cpp". NFC.
$ time c++ -std=c++11 -march=native -DMAC -I/usr/local/include -DCAP_PNG=0 -O0 -w langen.cpp -o langen
    real  0m12.602s
    user  0m12.058s
    sys   0m0.511s
2018-06-23 18:26:47 -07:00
Arthur O'Dwyer
edf714689d Remove spurious semicolons from language-??.cpp. NFC.
$ time c++ -std=c++11 -march=native -DMAC -I/usr/local/include -DCAP_PNG=0 -O0 -w langen.cpp -o langen
    real  0m12.621s
    user  0m12.063s
    sys   0m0.509s
2018-06-23 18:10:50 -07:00
Zeno Rogue
440940a945 10.4g 2018-06-24 01:23:06 +02:00
Zeno Rogue
6dfe5c444c 'skip the start menu' option works now 2018-06-24 01:22:50 +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
f0e07c4b15 10.4f 2018-06-22 20:28:41 +02:00
Zeno Rogue
bc06f387fc fixed some issues with the generation of Land of Storms in other geometries 2018-06-22 19:36:04 +02:00
Zeno Rogue
63869c6d33 renamed the size function to isize 2018-06-22 14:47:24 +02:00
Zeno Rogue
23874e0de4 New quotient geometries now work correctly in rogueviz-kohonen. Added the RogueViz makefile (Makefile.rv) with an unit test for this 2018-06-22 14:26:24 +02:00
Zeno Rogue
5be5d9440e fixed the world sizes shown for Bolza surfaces 2018-06-22 04:49:42 +02:00
Zeno Rogue
8e674f8818 a small break above 'show quotient spaces' 2018-06-22 04:49:26 +02:00
Zeno Rogue
d6af6f9df0 fixed the coloring for Goldberg Bolza x2 2018-06-22 04:42:58 +02:00
Zeno Rogue
a48241d639 gp:: better message about illegal parameters for non-orientable geometries 2018-06-22 04:42:39 +02:00
Zeno Rogue
6d15b511c2 fixed a bug with Goldberg geometries on Bolza2 2018-06-22 02:01:46 +02:00
Zeno Rogue
888d9ad3a7 made Xprintf inline to prevent double definition when linking HyperRogue with extra code 2018-06-22 02:01:31 +02:00
Zeno Rogue
da60a2f336 added some std features used in RogueViz 2018-06-22 02:00:26 +02:00
Zeno Rogue
8f8a259992 new quotient geometries 2018-06-22 01:48:46 +02:00
Zeno Rogue
742828125e some fixes to celldistance 2018-06-21 08:38:11 +02:00
Zeno Rogue
09c2a2096b 10.4d 2018-06-18 17:54:38 +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
25d972d144 also using other functions from cmath 2018-06-18 03:53:39 +02:00
Zeno Rogue
6d93ff4ab2 using std::abs 2018-06-18 03:43:23 +02:00
Zeno Rogue
a7ed148ec3 removed unnecessary check gp::on 2018-06-17 19:04:57 +02:00
Zeno Rogue
3daecc4981 Land validity is displayed when selecting geometry after selecting land. Validity message appears in the geom-exp menu. 2018-06-17 19:04:17 +02:00
Zeno Rogue
d3200253db replacing with an explicit list 2018-06-17 18:32:06 +02:00
Zeno Rogue
dabf322095
Merge pull request #38 from Quuxplusone/makefile-fixes
Minor fixes for Mac and MinGW.
2018-06-17 18:22:45 +02:00
Zeno Rogue
b6f47dd907
Merge branch 'master' into makefile-fixes 2018-06-17 18:22:20 +02:00
Zeno Rogue
b2cc825ec9 smart celldistance did not work with non-standard tori -- replacing with a dumb one for now 2018-06-17 18:14:33 +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
9e712ae8ea more Ivy in Goldberg jungle 2018-06-17 12:13:24 +02:00
Zeno Rogue
f699f73f1a texture:: undo clears pixels_to_draw; the number of pixels_to_draw displayed in the editor 2018-06-17 12:06:01 +02:00
Zeno Rogue
69429ba4d4 creating Mimics in the map editor now works correctly 2018-06-17 12:03:39 +02:00
Zeno Rogue
06de0989cd fixed saving the full texture 2018-06-17 12:03:05 +02:00
Zeno Rogue
e7a9cebbee fixed some issues with gp/texture 2018-06-17 12:02:47 +02:00
Zeno Rogue
e743e18156 10.4c 2018-06-17 12:02:06 +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
8fe482ec16 improved the installation instructions for non-Linux 2018-06-15 00:14:24 +02:00
Zeno Rogue
b0d9305665 fixed markup 2018-06-15 00:10:10 +02:00
Zeno Rogue
239713de6b updated the version number in config script, and README.md 2018-06-15 00:09:35 +02:00
Zeno Rogue
0054b09b5c minor Android fixes 2018-06-15 00:03:05 +02:00