Enno Rehling
c7f8b16c07
remove unused r->land->items list.
2017-05-09 18:49:10 +02:00
Enno Rehling
db07cbed6b
use correct type for PI (double).
...
promote defines to platform-header.
2017-05-06 09:44:06 +02:00
Enno Rehling
7ad5c4b3f2
define PI, because M_PI is not to be depended on
2017-05-04 08:22:20 +02:00
Enno Rehling
26795ae717
guassian distribution has no endless loops.
2017-05-03 21:02:30 +02:00
Enno Rehling
83d40962d2
disable randomness that causes some tests to become intermittent.
...
fix normalvariante and chance so they work better with constant
rng always returning zero
2017-05-02 08:45:18 +02:00
Enno Rehling
0b226ba75e
fix farsi names containing nzwj symbol.
2017-04-10 17:32:32 +02:00
Enno Rehling
c49786d713
fix some memory leaks
2017-03-30 23:13:55 +02:00
Enno Rehling
496c57cb3d
Merge branch 'develop' into profile-hashstring
2017-03-11 16:14:31 +01:00
Enno Rehling
7022ae05bd
Merge branch 'master' into develop
...
Conflicts:
src/kernel/item.c
src/modules/arena.c
2017-03-06 22:20:22 +01:00
Enno Rehling
e3a969ce9b
add a test to see that frac_make can handle large integers.
2017-03-06 21:43:31 +01:00
Enno Rehling
4d07782e7d
Merge branch 'master' into develop
...
Conflicts:
scripts/tests/e2/init.lua
scripts/tests/e3/init.lua
src/economy.c
src/economy.test.c
2017-03-06 06:27:31 +01:00
Enno Rehling
33b98b59ec
when make_frac cannot find a gcd, cheat.
2017-03-05 22:28:08 +01:00
Enno Rehling
462d0118e3
better testing for some items.
2017-02-27 20:16:50 +01:00
Enno Rehling
9d09574d5e
enable process_orders to be done in steps.
...
by checking before turn_end(), we can sense temporary attributes and curses on a unit before they age away.
2017-02-27 19:35:14 +01:00
Enno Rehling
e557140ad1
more fractions functionality.
2017-02-24 20:47:31 +01:00
Enno Rehling
e0229be500
also implement subtraction.
2017-02-24 17:56:39 +01:00
Enno Rehling
234eb62226
short and sweet math with fractions.
...
goinf to use this for magres.
2017-02-24 17:51:35 +01:00
Enno Rehling
158e0646e1
implement fractions
2017-02-24 15:48:49 +01:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
3ea12be564
BENUTZE Muschel repariert.
...
at_keys hat jetzt auch zu jedem key ein value, und Funktionen zum Update altee Daten.
2017-02-13 18:48:38 +01:00
Enno Rehling
17ff2ead41
make_locales from config_get
2017-02-12 05:52:46 +01:00
Enno Rehling
b504899b07
fix locale initialization
2017-02-09 23:28:50 +01:00
Enno Rehling
60497da87b
print error message when missing parameter translation.
2017-02-07 20:52:31 +01:00
Enno Rehling
644a6019a6
do not call isdigit with a negative value.
...
http://bugs.eressea.de/view.php?id=1987#c6941
2017-02-03 21:19:39 +01:00
Enno Rehling
534e5874e9
Merge branch 'gmtool' into develop
...
Conflicts:
src/util/unicode.test.c
2017-01-31 22:19:00 +01:00
Enno Rehling
c0692986b2
make runtests.bat not crash.
...
disable auto-load of config.lua (sob).
free messages and config in config.reset().
2017-01-26 18:06:48 +01:00
Enno Rehling
af1ce9b84e
issue #633 : parse FACTION/PARTEI in any language.
...
added a test since the first fix did not work.
2017-01-26 18:06:48 +01:00
Enno Rehling
b51349df6b
change error message categories.
...
also removing some unused messages and code that supports them.
https://bugs.eressea.de/view.php?id=2270
2017-01-26 18:05:26 +01:00
Enno Rehling
7b25ed282d
more stbool.h includes, MSVC has no unlink
2017-01-26 18:05:26 +01:00
Enno Rehling
5ddd511aa8
continue fixing compilation (gcc/clang)
2017-01-26 18:03:48 +01:00
Enno Rehling
d94cde67a4
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-26 18:03:48 +01:00
Enno Rehling
03def6ae5e
replace snprintf and the like.
...
you cannot trust _snprintf in MSVC (no zero-termination).
2017-01-26 17:57:21 +01:00
Enno Rehling
2422e63af2
never use strncpy, anywhere.
2017-01-26 17:57:21 +01:00
Enno Rehling
d71d5e413a
eliminate unnecessary strncpy use.
2017-01-26 17:57:21 +01:00
Enno Rehling
47c8b20f68
add a happy test for mt_new.
...
refactor to not use strncpy.
2017-01-26 17:57:21 +01:00
Enno Rehling
a4badc0a75
remove quicklist shim, use selist everywhere
2017-01-26 17:41:21 +01:00
Enno Rehling
d9213c8f25
WIP: still converting to clibs/selist
2017-01-26 10:12:12 +01:00
Enno Rehling
43b8ff1ea8
fix strdup compilications when compiling with gcc and autoconf.
2016-11-26 16:21:41 +01:00
Enno Rehling
e52cf75c59
remove autoconf.h from platform.h, fix lots of includes
2016-11-25 20:15:11 +01:00
Enno Rehling
ecd74c53f5
More PVS-Studio warnings eliminated.
2016-11-23 19:19:04 +01:00
Enno Rehling
ec4060cb9a
fix curse-vigour calculation math.
...
also fix a ton of small other niggles from pvs-studio.
2016-11-20 19:08:39 +01:00
Enno Rehling
9ac74ceecc
fix constant conversion error
2016-11-20 15:14:03 +01:00
Enno Rehling
ae951ee780
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
2016-11-20 14:50:49 +01:00
Enno Rehling
55a0388eb2
fix truncated names that split a utf8 sequence.
2016-11-20 14:50:38 +01:00
Enno Rehling
7d874f1606
fix clang builds
2016-11-18 13:24:50 +01:00
Enno Rehling
a08563e846
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
2016-11-17 22:10:53 +01:00
Enno Rehling
dc2452e2c1
config.h globals cleanup.
2016-11-17 22:10:41 +01:00
Enno Rehling
6c9e1fb345
more config.h removal.
...
freset/fset/fval must die!
2016-11-17 17:06:31 +01:00
Enno Rehling
d5218b99b8
do not include config.h from util (also, wasn't needed)
...
also remove it from monsters.
2016-11-17 10:55:23 +01:00
Enno Rehling
49e5b5b67e
gcc missing include
2016-11-14 23:19:28 +01:00