Enno Rehling
9f391039b5
more bsdstring removal, str_replace, unit tests.
2017-12-11 18:20:21 +01:00
Enno Rehling
ffbc9596d7
we do not need a USE_LIBXML define, xml is a hard requirement.
2017-12-09 21:04:27 +01:00
Enno Rehling
643883d539
remove some more unused defines.
2017-12-09 11:17:39 +01:00
Enno Rehling
17ee0e50b6
cppcheck warnings and scope reductions.
2017-12-08 21:08:11 +01:00
Enno Rehling
9163d166ec
cppcheck style fixes.
...
delete dead functions.
reactivate patzer_deathcloud.
2017-12-08 19:59:49 +01:00
Enno Rehling
67318950d5
Merge branch 'develop' into order_id
2017-11-20 18:23:33 +01:00
Enno Rehling
e0bd5c2c7b
abort on OOM
2017-11-20 14:44:02 +01:00
Enno Rehling
290a07e763
Merge branch 'develop'
2017-11-15 20:39:20 +01:00
Enno Rehling
54b016a735
Merge remote-tracking branch 'upstream/develop' into develop
2017-11-15 20:37:46 +01:00
Steffen Mecke
0aa5a64c63
allow empty faction email
2017-11-15 12:12:42 +01:00
Enno Rehling
05b7837070
fix parser to keep a reference to the order it is parsing.
...
make push/popstate not crash. pass unit tests.
2017-11-10 07:56:56 +01:00
Enno Rehling
34808a25c5
Merge branch 'develop'
2017-11-09 18:04:41 +01:00
Enno Rehling
12646f726a
Add a failing test for bug 2379.
2017-11-05 15:11:02 +01:00
Enno Rehling
1866b95e14
BUG 2381: parse_token overrun.
2017-10-29 18:03:44 +01:00
Enno Rehling
6d79f85628
orderdb backend choices and first tests.
2017-10-14 08:43:01 +02:00
Enno Rehling
0537d39b17
add a fix for 2367 to fix_familiars
2017-10-07 03:22:35 +02:00
Enno Rehling
2ce94f2d47
BUG 2367: refactor create_newfamiliar.
...
add first failing test for bug report.
2017-10-06 21:23:58 +02:00
Enno Rehling
9f97ee2dd7
Merge branch 'resolve-hashing'
2017-09-23 21:14:57 +02:00
Enno Rehling
95695c1b54
remove log_orders because I'm never using it and it costs time.
...
reduce memory reserved for balloc.
2017-09-23 21:12:50 +02:00
Enno Rehling
0c16727d41
hashing implemented with linear probing and tombstones.
...
WIP: this crashes 572 in faction_getmages?
2017-09-22 09:15:37 +02:00
Enno Rehling
902e2126c9
WIP: change the resolve.h API
2017-09-21 17:29:01 +02:00
Enno Rehling
cda17d5379
The minimum data version has actually been 332 for a long time.
2017-09-21 16:30:29 +02:00
Enno Rehling
89e162c12a
change resolve.h api to use int, not variant.
2017-09-19 11:42:02 +02:00
Enno Rehling
d8c063ae50
CID 172474 + 173899 Copy into fixed size buffer
2017-09-18 20:33:36 +02:00
Enno Rehling
423fe65377
move region display to land_region struct, oceans do not have descriptions.
2017-09-16 07:58:57 +02:00
Enno Rehling
860afe855f
improve the skill read/write code.
2017-09-15 22:03:54 +02:00
Enno Rehling
30b0b2ad81
fix a lot of memory leaks that were exposed by unit tests.
2017-09-02 17:36:09 +02:00
Enno Rehling
a8bfa5e095
try fixing familars without a mage.
2017-08-31 21:19:25 +02:00
Enno Rehling
219a3159e8
sort the at_keys array, binary search.
2017-08-20 12:58:05 +02:00
Enno Rehling
faf0f48a70
BUG 2354: fix email validation.
...
https://bugs.eressea.de/view.php?id=2354
2017-08-06 21:03:51 +02:00
Enno Rehling
18daa9db2f
entirely remove RC_SPELL
2017-05-24 08:52:19 +02:00
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