Enno Rehling
eb1dc731cb
consistently rename ec_flags constants (ECF_*)
2017-07-17 12:33:55 +02:00
Enno Rehling
4c21ff5d63
BUG 2311: enforce all unit limits.
2017-03-11 20:30:17 +01:00
Enno Rehling
21e260907c
BUG 2311: unit limits were not enforced by GIVE.
2017-03-11 20:03:49 +01:00
Enno Rehling
cdf13c9fec
stop using test_create_world, use test_setup.
2017-03-11 14:22:21 +01:00
Enno Rehling
aa662e65d2
eliminate R_PERSON hack.
2017-03-05 13:58:11 +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
182fc3fa3c
remove test for bug 2253
2017-02-12 19:32:27 +01:00
Enno Rehling
6d60b48b3f
create_order takes variable arguments!
...
more snprintf removal.
2017-01-07 21:19:58 +01:00
Enno Rehling
fbe846864d
arguments for test_setup that help debugging tests.
2016-11-16 18:08:10 +01:00
Enno Rehling
d73a629e79
add a test for regular give_cmd.
...
also, speed up the function a little bit.
2016-11-14 20:01:44 +01:00
Enno Rehling
7557b97dee
BUG 2253: Magicians cannot give men to empty units or peasants.
...
https://bugs.eressea.de/view.php?id=2253
2016-11-13 16:09:58 +01:00
Enno Rehling
6cfdc50fdf
add unit tests for giving stuff to empty units.
...
should only be allowed to give things to a new unit, not a recently
deceased.
https://bugs.eressea.de/view.php?id=2230
2016-08-21 11:46:54 +02:00
Enno Rehling
aba0be505e
refactor many tests to use the test locale instead of building their own
2016-03-24 13:01:47 +01:00
Steffen Mecke
1f4c521ac8
encapsulate r->land->peasants, money, horses, herbs, morale
2015-12-08 17:57:23 +01:00
Enno Rehling
b05fe9316a
introducing config_set and config_get so we don't have to refer to globals.parameters everywhere
2015-11-22 10:33:31 +01:00
Enno Rehling
ee02721c21
fix and tests for otherfaction attributes in E2
...
https://bugs.eressea.de/view.php?id=2152
2015-11-09 13:36:52 +01:00
Enno Rehling
24f1f82e93
release order reference used to create castorder, message
2015-10-13 23:02:01 +02:00
Enno Rehling
457465b4a2
memory leak: free message_list objects
2015-10-13 22:37:45 +02:00
Enno Rehling
333c27403f
memory leaks: ship_type.construction, give_cmd return values
2015-10-13 22:34:22 +02:00
Enno Rehling
ff0bbce4f9
weird things happen when you name locales something else?
2015-10-13 21:30:10 +02:00
Enno Rehling
7854684d8b
fix memory leaks in all tests that create an order without calling free_order at the end.
2015-10-13 15:45:38 +02:00
Enno Rehling
dcf6c28b0e
testing all the error cases for PIRACY
2015-10-12 13:27:39 +02:00
Enno Rehling
77912166bf
Backfill missing tests for Bug 1818. Actual bug appears to have been fixed some time ago.
2015-09-07 14:49:57 +02:00
Enno Rehling
2e3c0db02a
add a failing test for bug 1685
2015-09-05 18:14:28 +02:00
Enno Rehling
12946615e5
Bugfix 2109: Einheiten lassen sich nicht mehr zwischen Parteien übergeben
...
https://bugs.eressea.de/view.php?id=2109
Wenn max_transfers < 0 war, wurde das nur in give_men richtig interpretiert, aber nicht in give_unit.
2015-06-08 09:06:20 +02:00
Enno Rehling
0dd02dbf72
add a test for give_unit between two allied factions.
2015-06-08 08:57:05 +02:00
Enno Rehling
293190703f
make maximum number of people transferred to a faction configurable
...
make E2 transfers basically unlimited.
2015-03-13 21:10:39 +01:00
Enno Rehling
0bd1a8d6f4
add a utility function to test for message types.
2015-01-12 17:50:10 +01:00
Enno Rehling
481275aef1
refactor: eliminate the getunitpeasants global variable.
...
bugfix: it was possible to uncover stealth units with GIVE CONTROL.
2014-12-12 20:53:39 +01:00
Enno Rehling
ef415c66d0
Fix GIVE 0 behavior on oceans.
2014-12-11 08:51:03 +01:00
Enno Rehling
215136465b
refactoring: getunitpeasants is an awful global hack, and I am pushing it out of give_men so I can eliminate it more easily.
2014-12-10 23:05:29 +01:00
Enno Rehling
f1662077c3
test giving too many and too few units.
...
start moving give-to-peasants logic into its own function.
2014-12-10 22:35:35 +01:00
Enno Rehling
33a5e0aa9d
test giving men to other faction.
...
refactor give_men to return a message.
major milestone reached: 200 unit tests.
2014-12-10 21:17:00 +01:00
Enno Rehling
2a61dc4d11
prepare for give_men refactoring by writing some basic tests.
2014-12-10 20:44:33 +01:00
Enno Rehling
38a0a02565
refactor tests for giving, add test for GIVE HERBS.
2014-11-03 08:33:07 +01:00