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

5502 Commits

Author SHA1 Message Date
Zeno Rogue
425cbef846 lerp for hyperpouint 2020-03-29 12:01:55 +02:00
Zeno Rogue
d9e4ba62ec lalign function in hprint 2020-03-29 12:01:29 +02:00
Zeno Rogue
d613f394cd additional Archimedean samples 2020-03-29 12:00:33 +02:00
Zeno Rogue
e33852c60f arcm:: additional checking 2020-03-29 11:59:03 +02:00
Zeno Rogue
4e1f955d67 brief fixup 2020-03-27 21:54:15 +01:00
Zeno Rogue
6feec1307f brief fixup 2020-03-27 21:51:21 +01:00
Zeno Rogue
920f26e1e7 brief fixup 2020-03-27 21:49:57 +01:00
Zeno Rogue
14cc3652de brief fixup 2020-03-27 21:49:20 +01:00
Zeno Rogue
81c350d5dd more brief 2020-03-27 21:48:31 +01:00
Zeno Rogue
0412f077e6 added/fixed some \brief descriptions 2020-03-27 21:47:09 +01:00
Zeno Rogue
eadd1d90c0 added some comments in drawing.cpp 2020-03-27 21:32:43 +01:00
Zeno Rogue
edbd71cdff inv comments fixup 2020-03-27 21:14:09 +01:00
Zeno Rogue
cb003fb051 added some comments to hr::inv 2020-03-27 21:10:55 +01:00
Zeno Rogue
2e6e715144 presentation comment fixup 2020-03-27 21:10:38 +01:00
Zeno Rogue
00bbdef12e added some comments in hr::tour 2020-03-27 20:54:21 +01:00
Zeno Rogue
a331779e72 one more fixup 2020-03-27 20:37:43 +01:00
Zeno Rogue
b7bb5c59f0 fixup system -> scores 2020-03-27 20:24:01 +01:00
Zeno Rogue
d21ffedcb5 added some comments to system.cpp; also fixed a bug with the three new orbs not being saved correctly in OSM 2020-03-27 20:21:08 +01:00
Zeno Rogue
67f64e2d91 load/save stuff is now in namespace scores 2020-03-27 20:05:58 +01:00
Zeno Rogue
63c9cc1060 removed tactic::trailer 2020-03-27 19:57:57 +01:00
Zeno Rogue
32baf01192 removed the variable 'showoff' 2020-03-27 19:53:59 +01:00
Zeno Rogue
a2b7da728a unused variable 'gamecount' removed 2020-03-27 19:46:36 +01:00
Zeno Rogue
c6f9b1b7e2 added some comments in system 2020-03-27 19:39:46 +01:00
Zeno Rogue
8b37a9ffbf added inline for voidp 2020-03-27 19:39:33 +01:00
Zeno Rogue
4d4c904d3b neon_mode is now an enum 2020-03-27 19:38:15 +01:00
Zeno Rogue
d68ff2eeda Triangle vizualization now includes the network 2020-03-27 13:47:48 +01:00
Zeno Rogue
f4130ec730 fixed false positive warnings with _GLIBCXX_ASSERTIONS 2020-03-27 12:32:46 +01:00
Zeno Rogue
a589b09fe4
Merge pull request #100 from V02460/doublebuffer
Fix setting doublebuffering
2020-03-27 12:06:00 +01:00
Zeno Rogue
b5a70c1bc6
Merge pull request #92 from Quuxplusone/pedantic
Add `-pedantic` to the Makefile, and fix all resulting warnings
2020-03-27 12:04:40 +01:00
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