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

5773 Commits

Author SHA1 Message Date
Zeno Rogue
f03b7bd1b0 version in README 2020-03-27 11:50:57 +01:00
Kai A. Hiller
f0cdc21dea Fix setting doublebuffering 2020-03-26 11:17:27 +01:00
Zeno Rogue
bcc96ffa11 11.3f 2020-03-25 13:52:32 +01:00
Zeno Rogue
c3928fdc01 fixed a crash in paracompact honeycombs 2020-03-25 13:47:52 +01:00
Zeno Rogue
1ecd525217 fixed a crash bug in {4,3,5} 2020-03-25 13:47:06 +01:00
Zeno Rogue
dbfce6cf31 fixed a (broken) help screen displayed when mousing over another land in the Guided Tour 2020-03-25 13:46:34 +01:00
Zeno Rogue
a967de75e0 fixed the interaction of Orb of Chaos and Orb of Time 2020-03-25 13:45:45 +01:00
Zeno Rogue
f9580d29f6 fixed a bug in inverse_exp in Solv (caused wobbling) 2020-03-25 13:44:51 +01:00
Zeno Rogue
3caf700868 solv:: fixed another potential problem 2020-03-25 13:43:35 +01:00
Zeno Rogue
eb747e761f in mymake updated the filename to savepng.o 2020-03-25 13:43:07 +01:00
Zeno Rogue
3c3aa2b061 updated the number of lands in Tour 2020-03-25 13:42:38 +01:00
Zeno Rogue
95a032eeb6 fixed a serious bug (it caused crashes in Solv racing, but it could cause other issues too) 2020-03-25 13:41:45 +01: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
Arthur O'Dwyer
f49c57c4f0 Fix a bug found by Clang's -Wtautological-overlap-compare.
./help.cpp:880:89: error: overlapping comparisons always evaluate to false [-Werror,-Wtautological-overlap-compare]
        if(!((c->wall == waCavefloor || c->wall == waCavewall) && (c->land == laEmerald && c->land == laCaves)))
                                                                   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
2020-03-23 14:48:56 -04:00
Arthur O'Dwyer
5cc8a41beb Turn C-style casts into reinterpret_casts for clarity. NFC. 2020-03-23 14:48:41 -04:00
Arthur O'Dwyer
2461b29ea2 Include <sstream> for the benefit of "hprint.cpp". 2020-03-23 14:45:59 -04:00
Arthur O'Dwyer
af69faa646 Fix a harmless misuse of DEBBI. 2020-03-23 14:39:30 -04:00
Arthur O'Dwyer
b450ca1596 Add -pedantic to the compiler options, and clean up some cruft. 2020-03-23 14:39:30 -04:00
Arthur O'Dwyer
e59d22e399 Silence some pedantic format warnings from Clang.
rogueviz/rogueviz.cpp: In function ‘hr::color_t rogueviz::parse1(const string&)’:
    rogueviz/rogueviz.cpp:76:75: error: format ‘%x’ expects argument
    of type ‘unsigned int*’, but argument 3 has type ‘int*’ [-Werror=format=]
         sscanf(s.c_str(), "R%x,%x,%x,%d,%d", &mh, &minh, &alpha, &step, &start);
                                                                               ^

I believe these three variables should have been `color_t` all along.
I think this fix doesn't change any of the arithmetic, but I could be wrong.
2020-03-23 14:39:30 -04:00
Arthur O'Dwyer
364c33b1d8 Fix a (likely harmless) integer overflow in shmup.cpp.
shmup.cpp: In function ‘void hr::shmup::moveMonster(hr::shmup::monster*, int)’:
    shmup.cpp:1851:41: error: overflow in implicit constant conversion [-Werror=overflow]
         else killMonster(m, moNone, AF_CRUSH);
                                             ^
2020-03-23 14:39:30 -04:00
Arthur O'Dwyer
561a3ebade Silence a pedantic GCC warning by adding reinterpret_cast<void*>.
Here we're casting a function pointer to `void*`, which is not doable
with our implicit-conversions-only `hr::voidp(x)` helper, and is
not even doable with a `static_cast`; we must `reinterpret_cast`.
2020-03-23 14:39:30 -04:00
Arthur O'Dwyer
7a706478dc Add a helper function voidp to silence GCC warnings about %p.
We must fully qualify calls to `hr::voidp` because the expression
`voidp(x)` is ambiguous or worse. "/usr/include/zconf.h" defines
`voidp` in the global namespace as a typedef for `void*`.
We don't want an unsafe functional-style cast to `void*`;
we want to call our nice safe helper function. So we qualify the name.
2020-03-23 14:39:28 -04:00
Arthur O'Dwyer
13bf666e29 Lambdas can't have default arguments until C++14.
Arguably this is a reason to upgrade from C++11 to C++14,
or to give up completely on `-pedantic`, but I think it's
easy enough to eliminate these few nits.
2020-03-23 14:38:57 -04:00
Arthur O'Dwyer
41669ab720 Eliminate -Wmissing-field-initializers warnings. 2020-03-23 14:38:57 -04:00
Arthur O'Dwyer
a0da10b408 Remove extraneous semicolons to quiet pedantic GCC warnings. 2020-03-23 14:38:57 -04:00
Zeno Rogue
14d2237c01 11.3e 2020-03-22 12:03:09 +01:00
Zeno Rogue
8aaeb4ea69 sight range changing no longer considered cheating in arb 2020-03-22 12:02:58 +01:00
Zeno Rogue
3bc2a8447a new tessellations 2020-03-22 11:43:31 +01:00
Zeno Rogue
e55289e317 exp_parser:: replaced 'return' to 'res = ' (allows adding etc.), changed useless 'cld = rparse' to 'ld = rparse' 2020-03-22 11:27:59 +01:00
Zeno Rogue
32c6228319 arb:: utilities for making Archimedean tilings 2020-03-22 11:27:06 +01:00
Zeno Rogue
3b5e31156d arb:: a bit nicer 2020-03-22 10:15:57 +01:00
Zeno Rogue
0153cb905a fixed a bug in some spherical tilings 2020-03-22 10:15:03 +01:00
Zeno Rogue
b2a6ae304d fixed a bug in loading maps from old versions 2020-03-22 09:48:24 +01:00
Zeno Rogue
aa8906d6dd added some documentation 2020-03-22 09:47:56 +01:00
Zeno Rogue
f1d84c248e added documentation for changes_t 2020-03-22 09:47:13 +01:00
Zeno Rogue
d9b1461c81 tortoise:: moving over other tortoises no longer clones them 2020-03-22 09:46:51 +01:00
Zeno Rogue
11447fcb7b tortoise:: shading now can be disabled 2020-03-22 09:46:13 +01:00
Zeno Rogue
33bacc8731 updated version and documentation link in README 2020-03-22 00:24:52 +01:00
Zeno Rogue
85e6be8cab do not reset whichShape to 0 in special geometries 2020-03-21 19:06:54 +01:00
Zeno Rogue
862d2c7e65 exporting arb::load 2020-03-21 19:05:44 +01:00
Zeno Rogue
c3fdc34f7c fixed CAP_RAY guards 2020-03-21 19:05:17 +01:00
Zeno Rogue
02112cb636 CLI option -precw 2020-03-21 19:04:23 +01:00
Zeno Rogue
64c63b7899 CAP_RAY 2020-03-21 10:49:07 +01:00
Zeno Rogue
c131ed52ad fixed the Slime cheese in the Wetland 2020-03-21 10:37:00 +01:00
Zeno Rogue
e21cbbd207 rogueviz:: export createViz 2020-03-21 10:15:11 +01:00
Zeno Rogue
e70915de9d fixed distance computation in 3D fieldquotient 2020-03-21 10:14:54 +01:00
Zeno Rogue
7096d152be product:: shmup:: monsters rotate correctly 2020-03-21 09:35:54 +01:00
Zeno Rogue
2cc1de4a02 flocking:: product geometries 2020-03-21 09:34:50 +01:00
Zeno Rogue
e3a1079a32 kohonen:: no longer display rings in 3D if we are not in Kohonen 2020-03-21 09:34:04 +01:00
Zeno Rogue
c91209620e fire-related orbs are now useless in Wetland 2020-03-21 09:32:28 +01:00