Enno Rehling
b5b9611a16
eliminate construction.improvement,
...
create building_type.stages instead.
2018-05-01 15:40:11 +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
3d69f4e372
start removing dependencies on potion_type.
...
use item_type where we can. does not compile, is WIP.
2018-01-14 17:40:48 +01:00
Enno Rehling
42e7e98ccf
Default to reporting missing message types during tests as an error, grandfather in some tests with test_inject_messagetypes();
2018-01-14 17:08:46 +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
cff4e12fbd
celan up tests, rename test_cleanup -> test_teardown.
2017-12-27 19:58:39 +01:00
Enno Rehling
fdd28835b5
Shifting signed 32-bit value by 31 bits is undefined behaviour
2017-11-20 07:51:31 +01:00
Enno Rehling
898c12e99a
XML construction elements never have a building.
...
required buildings are encoded by RMT_PROD_REQUIRE.
improved error messaging.
2017-05-06 15:53:21 +02:00
Enno Rehling
a313e78de5
move building names from function to construction data.
2017-04-26 21:44:24 +02:00
Enno Rehling
e72155a563
WIP: reimplemented production modifiers.
...
The system itself seems to work, but some Lua tests are still failing.
2017-04-02 14:43:53 +02: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
313d988e59
fix remaining unit test after guard changes.
2016-10-31 20:10:17 +01:00
Enno Rehling
0bcb3a853f
WIP: finish removing GUARD_* flags
...
TODO: fix failing tests
2016-10-31 09:40:36 +01:00
Enno Rehling
86ef225ccb
add some more local caching.
2016-09-11 12:48:00 +02:00
Enno Rehling
00804344fd
fix order-related memory leaks
2016-09-06 21:07:23 +02:00
Enno Rehling
b321918cd1
check and fix destroy_cmd syntax error handling
2016-08-31 20:38:20 +02:00
Enno Rehling
534708d83e
add a test for DESTROY <limit> ROAD
2016-08-28 16:51:16 +01:00
Enno Rehling
808d51429e
test destroy_road message arguments.
2016-08-28 16:44:14 +01:00
Enno Rehling
b0400a797d
when not skilled enough to destroy a road, don't get a destroy_road message.
...
test destroy_road message.
2016-08-28 16:31:29 +01:00
Enno Rehling
1cdeab5e06
test destroy_road skill scaling and person scaling.
2016-08-28 16:13:26 +01:00
Enno Rehling
1e04e20671
testing destroy_road by way of destroy_cmd.
...
two simple cases only.
2016-08-28 14:31: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
aba0be505e
refactor many tests to use the test locale instead of building their own
2016-03-24 13:01:47 +01:00
Enno Rehling
318820fb00
eliminate use of test_create_world
2015-11-07 23:49:45 +01:00
Enno Rehling
377b0d0305
leak: teardown build tests, free construction data
2015-10-13 23:09:50 +02:00
Enno Rehling
cf88280595
fix build_building tests, require an order argument.
...
test current replace_order behavior.
2015-05-21 11:52:31 +02:00
Enno Rehling
abca25d1d5
fix indentation in every file
...
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
2015-01-30 20:37:14 +01:00
Enno Rehling
9f09b9b915
fixed memory leaks in tests, thanks to valgrind
2014-12-30 23:34:24 +01:00
Enno Rehling
a9a0455207
reorganized directory structure.
...
flattening the directory structure, moving some modules to the src/ directory.
making stealth a separate file, under test.
more tests for some stuff.
2014-08-27 06:40:35 +02:00
Enno Rehling
d435c13bfc
adding more tests.
...
test for build()
test for scale_number()
update submodules
2014-08-26 20:06:49 +02:00
Enno Rehling
2ceeb0b819
fix errors that gcc finds
2014-08-25 08:15:51 +02:00
Enno Rehling
7d17cafdd6
simple tests for build().
...
cleaning up the code to give it a common setup function.
change the golem code to use flag, not hard-coded race.
unify the golems, make code more readable, kill a block of unused code.
2014-08-24 17:09:32 +02:00
Enno Rehling
c3dfbdea18
eliminate new_race array in favor of a function (TODO: make it fast)
2014-06-29 18:10:02 -07:00
Enno Rehling
6bd2b3be26
add a test for stone golems building castles.
...
fix a bug when stone golems use themselves up.
2014-06-28 23:58:00 -07:00
Enno Rehling
89e7a7826f
added some tests for building buildings.
2014-06-28 16:19:46 -07:00