Commit graph

521 commits

Author SHA1 Message Date
Enno Rehling
56141ee7a1 include what you use 2021-03-14 17:42:18 +01:00
Enno Rehling
d1aff44d7b Happy Pi day!
Let's use M_PI, it's available in all known math.h implementations.
2021-03-14 17:39:53 +01:00
Enno Rehling
38fd655af9 remove the weird rounding macro from peasant growth 2021-03-13 08:14:01 +01:00
Enno Rehling
9c8df88525 reset rng injection before runnign test. 2021-03-12 20:43:43 +01:00
Enno Rehling
b288a62542 simplify random injection, extend it to integer constants 2021-03-12 19:24:44 +01:00
Enno Rehling
e2a567e9c9 add tests for dice_rand term evaluation 2021-03-11 19:53:44 +01:00
Enno Rehling
5df3c3dc4b fix a crash in give_cmd.
do give_unit last, because it kills the actively iterated list.
2021-03-03 20:10:51 +01:00
Enno Rehling
a3499dd895 fix new bug in ascii converter. 2021-02-21 21:01:52 +01:00
Enno Rehling
abf548cecd overdue unicode cleanup.
our new pdcurses can do utf8 output, let's use it.
convert output on a windows tty to codepage 1252.
2021-02-21 20:49:03 +01:00
Enno Rehling
e0e82c5fa5 fix MSVC warning levels, move _CRT_SECURE_NO_WARNINGS define to sources 2021-02-20 23:22:10 +01:00
Enno Rehling
c8d03c9ea3 fix inifile and tolua builds
remove our custom assert header
2021-02-16 10:12:05 +01:00
Enno Rehling
e156a65779 fix the inifile cli editor 2021-02-16 10:12:05 +01:00
Enno Rehling
a59fdf87cb separate stats and log 2021-02-16 10:12:05 +01:00
Enno Rehling
b0093868b3 eliminate cJSON submodule 2021-02-16 10:12:05 +01:00
Enno Rehling
219ec117c6 fix gcc 10 compatibility 2021-02-16 10:09:14 +01:00
Enno Rehling
69c4595282 Build in Visual Studio 2019
simplify test_create_faction
rewrite lots of tests
2020-12-06 15:47:47 +01:00
Enno Rehling
4e9bc53288 avoid division by zero for uninitialized btype->magres fractions 2020-11-07 21:28:25 +01:00
Enno Rehling
f95549a91a Fehlendes \n bei einfachen attributen im CR 2020-08-23 21:28:15 +02:00
Enno Rehling
9c71139bf4 add region_id to messages that include a region. 2020-08-23 20:55:58 +02:00
Enno Rehling
55704cfce8 Parser fallback to latin1 when detecting invalid utf-8 2020-08-16 16:00:29 +02:00
Enno Rehling
d55cfb8cbf https://bugs.eressea.de/view.php?id=2689
Implement a working LOCALE command.
OBS: Throws away any command that isn't easy to translate.
2020-08-16 16:00:29 +02:00
Enno Rehling
d0149f334f test for new parser behavior. 2020-08-16 16:00:28 +02:00
Enno Rehling
a3300d5b59 fix parser crash from turn 1179 2020-08-16 16:00:28 +02:00
Enno Rehling
e80701ef35 Allow alternative names for some spells. 2020-08-16 16:00:28 +02:00
Enno Rehling
276db404ba bug 2673 ignore commands that have fewer than 2 characters. 2020-08-16 16:00:26 +02:00
Enno Rehling
f9c3f74117 Bug 2670 trim   and others from strings. 2020-08-16 16:00:26 +02:00
Enno Rehling
83232eb556 remove legacy filereader code 2020-08-16 16:00:26 +02:00
Enno Rehling
6ebb5c7591 Merge branch 'ships' into develop 2020-03-28 09:37:40 +01:00
Enno Rehling
112126b07b Bug 2653: Fehlermeldungen bei Übergabe von Schiffen. 2020-03-25 19:20:51 +01:00
Enno Rehling
609d0daed3 Merge branch 'master' into develop 2020-03-14 12:00:41 +01:00
Enno Rehling
8bf8b68571 make parse_token trim ignored characters like zero-width spaces. 2020-03-14 11:59:35 +01:00
Enno Rehling
34ac5154e7 make parse_token trim ignored characters like zero-width spaces. 2020-03-14 11:57:29 +01:00
Enno Rehling
4886d29401 small code cleanup 2020-02-02 18:52:30 +01:00
Enno Rehling
4052cb71ff Show convoy in reports. 2019-10-07 22:01:02 +02:00
Enno Rehling
b9ae927aa3 remove copyright notices. 2019-09-13 21:35:44 +02:00
Enno Rehling
12117776a0 ignore some code more points, but leave emoji intact. 2019-08-08 18:23:31 +02:00
Enno Rehling
16cad15dec change test for trimming non-printable chars 2019-08-02 12:24:32 +02:00
Enno Rehling
a2a7bc5f61 add missing include 2019-08-01 23:11:52 +02:00
Enno Rehling
964a0586dc fix UTF8 trimming 2019-08-01 22:58:20 +02:00
Enno Rehling
55299346f8 use wint_t, not long. 2019-08-01 18:49:39 +02:00
Enno Rehling
5cf680997e implement atoi36 with strtol 2019-07-28 12:56:59 +02:00
Enno Rehling
c70e597b05 Update copyright notice with current date. 2019-07-14 09:37:35 +02:00
Enno Rehling
75dfed8082 Leerzeichen aus Beschreibungen trimmen. 2019-04-24 13:09:59 +02:00
Enno Rehling
ea1bf3d3b9 Bug 2567: we had alliances with status 0 in the data. 2019-03-24 17:18:25 +01:00
Enno Rehling
9436640d22 remove UTF-8 BOM from sources 2019-03-03 09:42:42 +01:00
Enno Rehling
ebe1df4cb9 review some flawfinder warnings 2019-03-03 09:41:53 +01:00
Enno Rehling
6f771ace3e re-undo splint warning fizes 2019-03-03 09:41:53 +01:00
Enno Rehling
6f61ca87a7 fix some weak splint warnings 2019-03-03 09:41:53 +01:00
Enno Rehling
dea177cc5e MSVC debugger gets confused when two structs have the same name 2019-03-03 09:41:53 +01:00
Enno Rehling
acbbf42db1 write a warning in the template about password replacement.
for new factions, put the generated password into the template.
normalize and secure password generation.
2019-03-03 09:41:53 +01:00