Enno Rehling
c48371387c
New Syntax: CONTACT [UNIT|FACTION] ...
...
Move everything to contact module, add tests.
2018-11-04 18:07:42 +01:00
Enno Rehling
0fd7906d41
extract contact logic to a module
...
add missing tests for contact to units.
add an attribute for contacting a faction.
2018-11-04 15:53:27 +01:00
Enno Rehling
ed6a6b4cf2
Merge branch 'develop' of https://github.com/ennorehling/eressea into develop
2018-10-30 06:28:09 +01:00
Enno Rehling
da9d3d3573
Merge branch 'master' into develop
2018-10-29 20:10:51 +01:00
Enno Rehling
be84c13a72
remove test_inject_messagetypes(), make that the default behavior in tests.
2018-10-28 21:28:05 +01:00
Enno Rehling
ac3a4d91c9
simplicate the use of ally.c
2018-10-26 19:47:50 +02:00
Enno Rehling
a7b9f6dc3e
Do not use 0 to mean NULL pointers.
2018-10-14 11:49:48 +02:00
Enno Rehling
d3a37179ef
add param.[hc], at last.
2018-09-29 19:32:39 +02:00
Enno Rehling
b3b19e7c83
suppress those null-reference bugs in another way, maybe?
2018-05-19 21:01:10 +02:00
Enno Rehling
dfa0ff09d1
Suppress some false positive coverity results.
...
It apparently does not understand CuTest code well?
Add a check for Lua eff_skill binding.
2018-05-19 20:53:51 +02:00
Enno Rehling
19b3b5b35a
change how message types are created (more prep work for expat)
2018-05-18 19:58:49 +02:00
Enno Rehling
05242aaf2d
Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2018-02-25 17:18:30 +01:00
Enno Rehling
75f41a7169
fix crashes on 64-bit systems (not all 0s are created equal).
2018-01-14 09:38:26 +01:00
Enno Rehling
84309caad7
Temporarily re-enable the missing_message code.
...
I think we'll want to make this injectable.
Fix the give tests.
2018-01-13 22:46:02 +01:00
Enno Rehling
b83a1ee136
fix more missing_message errors.
2018-01-13 08:51:40 +01:00
Enno Rehling
f98eab56c4
platform.h is only for WIN32 now.
...
replace MIN and MAX macros, they are BAD.
2017-12-29 06:13:28 +01:00
Enno Rehling
cff4e12fbd
celan up tests, rename test_cleanup -> test_teardown.
2017-12-27 19:58:39 +01:00
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