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

36 Commits

Author SHA1 Message Date
Zeno Rogue
a3574a2c13 langen:: improved error messages 2021-02-07 22:55:10 +01:00
Arthur O'Dwyer
8564e53d08 langen: Handle repeated strings better.
If a translation file contains two copies of the same English string,
with the same translation, then we don't care at all; just throw out
the second copy.

If a translation file contains two copies of the same English string,
with DIFFERENT translations, then (according to how the game does
translation) one of those translations must be inappropriate. Give
a warning in that case; and again, throw out the second copy because
we are forced to pick ONE translation for use within the game.

Also fix some minor typos I noticed in the strings.
2020-03-31 15:48:03 -04:00
Arthur O'Dwyer
a0da10b408 Remove extraneous semicolons to quiet pedantic GCC warnings. 2020-03-23 14:38:57 -04:00
Arthur O'Dwyer
6089a8b391 Const-correctness in langen.cpp. 2020-02-15 22:59:04 -05:00
Zeno Rogue
1c0db70191 fixed incorrect utfsize 2019-09-13 19:36:27 +02:00
Zeno Rogue
a3d9711ec2 more adjustments to disabled CAP_* 2019-09-13 03:10:26 +02:00
Zeno Rogue
30311e3929 fixup to extern 2019-09-12 22:50:16 +02:00
Zeno Rogue
7c56ff19c8 natchars should be const char* 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
3c5875d4cd langen:: replaced %zu with %d since it is not available in some versions of MinGW 2019-09-12 22:50:15 +02:00
Zeno Rogue
917fbac4a2 configurable Sol sight range, and glitch removal 2019-09-12 22:50:10 +02:00
Zeno Rogue
c07e22ca5e onscreen keyboards where applicable 2019-09-12 22:50:08 +02:00
Zeno Rogue
1820919095 draw editor displays all coordinates in 3D 2019-09-12 22:42:59 +02:00
Zeno Rogue
a556ef0823 improvements in expansion 2018-09-13 20:38:06 +02:00
Zeno Rogue
b987ce2dec added π as a guaranteed character in langen (useful for presentations) 2018-07-23 23:37:36 +02:00
Arthur O'Dwyer
a346e05bbc Eliminate variable shadowing in langen.cpp. 2018-06-27 03:01:58 -07:00
Arthur O'Dwyer
00e1db9f05 Eliminate directives inside macro expansions, for the benefit of MSVC. 2018-06-27 03:01:56 -07: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
Zeno Rogue
63869c6d33 renamed the size function to isize 2018-06-22 14:47:24 +02:00
Zeno Rogue
d3200253db replacing with an explicit list 2018-06-17 18:32: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
64adb6f0ea updated the header comments to 2018, also added the missing ones 2018-02-09 00:40:26 +01:00
Zeno Rogue
d007580967 configurable field patterns 2017-11-07 00:40:46 +01:00
Zeno Rogue
f38cf14110 unified the land lists 2017-11-03 19:31:42 +01:00
Zeno Rogue
fe3f1bf4ad improved texts, appro overview changed in some cases, 'x'pansion moved to geom sel 2017-10-31 15:20:02 +01:00
Zeno Rogue
4ff3593ce8 removed printf parameter to avoid Clang warning 2017-10-14 19:54:52 +02:00
Zeno Rogue
a11ffd2845 fixed a bug which caused some texts not to be translated 2017-09-17 12:47:32 +02:00
Zeno Rogue
7c82c3e5a3 fixes to make the Emscripten web version compile correctly 2017-08-13 20:49:38 +02:00
Zeno Rogue
130fefa4c4 10.0g 2017-08-06 14:50:16 +02:00
Zeno Rogue
ce5650a81f 10.0 2017-07-16 23:00:55 +02:00
Zeno Rogue
22c9217219 work in progress for 10.0 2017-07-04 15:38:33 +02:00
Zeno Rogue
58e053f183 Updated the source files to 9.4c 2017-03-23 11:53:57 +01:00
Eryk Kopczyński
3237ff455e Updated to 8.3j 2016-08-26 11:58:03 +02:00
Zeno Rogue
19055633b0 Updated HyperRogue sources to 7.4f. 2016-01-02 11:09:13 +01:00
Alexandre Moine
9b11f1b6c5 Initialization with hyperrogue-66 2015-08-08 15:57:52 +02:00