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
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
0c6ec47598
fix compilation
2018-09-30 13:45:19 +02:00
Enno Rehling
a373807189
move attrib and event modules to kernel
2018-09-29 11:37:17 +02:00
Enno Rehling
e89fe69d58
simplicate the sink_ship function, do not rescue units.
2018-08-01 11:55:57 +02:00
Enno Rehling
6abf054b42
replace bsdstring functions in cycle_route.
2018-05-27 20:31:36 +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
2f7637f953
add a unit test for make_movement_order, too.
2018-04-22 18:08:56 +01:00
Enno Rehling
fc4b7ba73d
refactor: extract cycle_route and test it (with PAUSE).
2018-04-22 11:02:05 +01: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
f776450f9b
Replace 0 with NULL (consistency is good).
2018-01-14 09:58:45 +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
b83a1ee136
fix more missing_message errors.
2018-01-13 08:51:40 +01:00
Enno Rehling
98678d9fb2
disable the missing_message replacement used in so many tests. fix some tests so they don't need it.
2018-01-12 21:15:21 +01:00
Enno Rehling
cff4e12fbd
celan up tests, rename test_cleanup -> test_teardown.
2017-12-27 19:58:39 +01:00
Enno Rehling
f4e56d1512
bug 2238: respect the dragon speed multiplier.
2017-12-26 06:26:56 +01:00
Enno Rehling
a7c45d31ad
bug 2214: drifting ships in E3 should take no damage.
2017-12-25 23:22:58 +01:00
Enno Rehling
691dde5960
unit test ROUTE.
2017-12-11 16:24:06 +01:00
Enno Rehling
34808a25c5
Merge branch 'develop'
2017-11-09 18:04:41 +01:00
Enno Rehling
9c24fe4b07
fix gcc build
2017-10-30 18:12:24 +01:00
Enno Rehling
35742e8870
BUG 2376: Abtreiben zeigt immer Nordwesten an.
2017-10-30 18:01:33 +01:00
Enno Rehling
333ef06fef
hackish optimization for STUDY orders
2017-10-13 19:33:29 +02:00
Enno Rehling
6265abac74
remove side-effects from movement_speed().
2017-10-06 22:30:44 +02:00
Enno Rehling
fe95ddafa1
reduce "translation not found" warnings in tests.
2017-03-10 21:43:36 +01:00
Enno Rehling
be0b54494e
clean up some tests.
...
the test locale gets some extra strings.
test_create_world is bad, stop using it. unfinished.
2017-03-10 21:29:37 +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
ddc7707cde
add a failing test for bug 2266
2016-12-16 17:16:10 +01:00
Enno Rehling
95954fb386
start writing a test (WIP).
2016-12-16 07:29:43 +01:00
Enno Rehling
19a0c2ddb3
quelling some static analysis complaints.
2016-11-19 20:57:10 +01:00
Enno Rehling
8597e8b16a
move guard test to guard.test.c
2016-10-30 05:39:25 +01:00
Enno Rehling
a42bd9c3bf
remove the BLD_WORKING flag.
...
it's all about BLD_MAINTAINED now.
fix region.blocked (Lua property).
2016-08-21 20:12:28 +02:00
Enno Rehling
78fa6d3a47
remove the SAIL_INTO flag
2016-06-10 20:55:27 +02:00
Enno Rehling
f08957b513
test target selection rules for drifting ships.
2016-06-10 18:24:18 +02:00
Enno Rehling
87b09cd3c6
refactor tests to use test locale where possible
2016-03-24 13:01:47 +01:00
Enno Rehling
267dafcee5
very basic tests for teach and study
2016-03-24 13:01:43 +01:00
Enno Rehling
be6a7a5e39
refactor test_create_locale
...
- create a mostly functional locale for testing
- use it for test factions
refactor learn_skill injection
- use days, not chance
- fix or mutilate broken tests
2016-03-24 13:01:42 +01:00
Enno Rehling
349a67ece3
memory leak: test_create_shiptype and coasts, again
2016-03-11 09:50:18 +01:00
Enno Rehling
5fed36903c
some drmemory fixes
...
some tests leaked.
current test_eressea reports:
41 unique, 41 total, 3778 byte(s) of leak(s)
120 unique, 270 total, 5615 byte(s) of possible leak(s)
2016-02-25 10:16:50 +01:00
Enno Rehling
5187788f3c
pass the parent of an attribute into a_age and attrib_type::age
2015-12-16 22:18:44 +01:00
Steffen Mecke
eae87bc7f1
fix null pointer access, bug2169
2015-11-29 21:06:35 +01:00
Enno Rehling
4b7cb824bd
Merge branch 'massive_overload' of https://github.com/stm2/server into stm2-massive_overload
...
Conflicts:
src/move.c
src/tests.c
2015-11-27 12:40:17 +01:00
Enno Rehling
0410581907
Merge branch 'market_tests' of https://github.com/stm2/server into stm2-market_tests
...
Conflicts:
src/move.test.c
src/study.c
2015-11-26 18:42:23 +01:00
Enno Rehling
dcfc1d1f15
Merge pull request #406 from ennorehling/critbit-params
...
config_get/config_set refactoring, kill cache logic
2015-11-23 12:25:16 +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
Steffen Mecke
afd44fc50a
fix test interdependence; set silver weight to 1
2015-11-19 15:29:04 +01:00
Steffen Mecke
a6757ecf9d
Merge branch 'develop' into massive_overload
...
Conflicts:
src/move.test.c
2015-11-19 14:54:14 +01:00
Steffen Mecke
92ee0f24a4
tweaked parameters for massive overload
...
so ... many ... configuration parameters
scrubbed lua test
2015-11-19 12:36:15 +01:00
Steffen Mecke
acb45e079d
test commit for travis
2015-11-17 17:34:03 +01:00