Enno Rehling
e52cf75c59
remove autoconf.h from platform.h, fix lots of includes
2016-11-25 20:15:11 +01:00
Enno Rehling
7f9313f1a7
static analysis warnings.
...
PVS-Studio warnings reduced or suppressed.
2016-11-23 18:56:40 +01:00
Enno Rehling
19a0c2ddb3
quelling some static analysis complaints.
2016-11-19 20:57:10 +01:00
Enno Rehling
303eb86399
factionid and curseid are also boring.
2016-11-17 21:29:15 +01:00
Enno Rehling
cbb18edb8f
declutter config.h, use it sparingly.
2016-11-17 10:38:09 +01:00
Enno Rehling
467ffe2db0
include guard.h directly, not through laws.h
2016-11-01 22:11:10 +01:00
Enno Rehling
92d027014a
Make runtests more verbose in case of errors.
...
Eliminate stray ERROR messages from tests.
2016-10-31 20:36:05 +01:00
Enno Rehling
754ad78db7
WIP: remove GUARD_* flags.
...
TODO: does not compile
TODO: write new guard.test.c tests
2016-10-31 07:45:06 +01:00
Enno Rehling
fb470b7af1
re-organize lighthouse reporting.
2016-10-05 20:36:01 +02:00
Enno Rehling
c53ac9d8aa
remove RS_FARVISION, it is the only spell that uses units.
2016-10-01 21:03:16 +02:00
Enno Rehling
c606a9ac4d
extract RC_SPELL handling into a small function, minimize get_race calls.
2016-09-22 20:22:23 +02:00
Enno Rehling
a3ad9a0222
I am now calling get_race far too often. Fix this a bit.
2016-09-20 20:27:41 +02:00
Enno Rehling
69b420ae2f
separate interval generation from seen-markup a bit more.
2016-09-20 15:53:55 +02:00
Enno Rehling
f8ac5c390d
SAMRT_INTERVALS is no longer an option, but regular
2016-09-20 09:39:21 +02:00
Enno Rehling
ec9d8eab1c
fix marking seen_neighbour regions.
...
fix reports-tests that didn't think about them.
2016-09-18 13:27:25 +02:00
Enno Rehling
7349ec0aa9
improve lighthouse tests.
...
you must be inside lighthouse to get a report from it.
2016-09-17 13:20:02 +02:00
Enno Rehling
0753ea0174
fix travelthru reporting (passes unit test)
2016-09-17 08:28:33 +02:00
Enno Rehling
a86e30d014
re-enable report testing, find out that it fails.
2016-09-16 21:17:54 +02:00
Enno Rehling
783c042d50
Merge branch 'develop' into kill-seen-region
...
Conflicts:
src/reports.c
2016-09-16 19:11:05 +02:00
Enno Rehling
acfa2cfbe5
remove view functions for special planes (Regatta).
2016-09-16 18:59:24 +02:00
Enno Rehling
d449ce4a8c
re-enable report writing, fix report.c to work without seen_region
2016-09-16 18:03:28 +02:00
Enno Rehling
dfbc520203
add a simple test for prepare_report.
...
TODO: it is _too_ simple.
2016-09-14 21:46:57 +02:00
Enno Rehling
929db73102
disable integration tests
...
combine prepare_ functions
2016-09-14 17:14:04 +02:00
Enno Rehling
8ec37783e2
fix nul-pointer access
2016-09-13 21:13:26 +02:00
Enno Rehling
20578da0e9
delete the old seen.* files
...
remove includes for seen.h
remove unused functions
2016-09-13 16:58:48 +02:00
Enno Rehling
71fa3600f7
recalculate [first,last) after lighthouses aand trvelthru
2016-09-13 09:09:35 +02:00
Enno Rehling
652ead4f60
prepare_seen has to check for ctx->f. we are no longer preparing everyone at once
2016-09-13 07:46:08 +02:00
Enno Rehling
a67950433d
WIP: prepare_seen vs lastregion/firstregion.
...
lighthouses and travelthru are handled by both, should only be in prepare_seen?
2016-09-12 22:03:16 +02:00
Enno Rehling
84bc6c58a8
prepare_reports gone
...
prepare_seen is something else now
unit tests are crashing
2016-09-12 15:59:22 +02:00
Enno Rehling
dda845e2f4
free configuration data (valgrind calls it still-reachable leaks).
2016-09-07 20:46:41 +02:00
Enno Rehling
d9e541843b
further reduce number of bt_find calls.
2016-08-30 09:36:09 +01:00
Enno Rehling
5bb9a10a46
is_building_type should be a quicker way to test for a building type than bt_find.
2016-08-30 09:13:59 +01:00
Enno Rehling
8ff26eb0e4
optimization: no need to look for a curse if unit has no attribs.
2016-08-29 19:41:21 +01:00
Enno Rehling
40d9ebfa94
reduce code duplication: itemcloak code was copied between NR and CR.
2016-08-29 19:37:47 +01:00
Enno Rehling
5a73fc80d8
telepath_see is a planned, but never realized, feature. delete it.
2016-08-29 18:20:36 +01:00
Enno Rehling
4bc8817056
remove a TODO that was ill-advised. The reason that "resources" is a list is that it's built incrementally.
2016-08-29 18:15:20 +01:00
Enno Rehling
ef44a4534e
add a test for copying resources message arguments.
...
my plan is to add a new argument type for arrays of resources with fewer allocations.
2016-08-29 17:31:09 +01:00
Enno Rehling
2c5063095d
fixed: tests that try to create duplicate spells do not spam stderr.
2016-08-29 14:49:31 +01:00
Enno Rehling
6ca3f04b89
issue #538 : default terrain
...
I think it's unnecessary, so delete it
2016-08-20 23:42:15 +02:00
Enno Rehling
7cbd23c26b
fix error detection during report writing
2016-08-06 20:50:27 +02:00
Enno Rehling
e6f3dc8b85
Merge branch 'master' into develop
...
Conflicts:
scripts/run-turn.lua
src/buildno.h
src/kernel/group.c
src/kernel/save.c
src/kernel/save.test.c
src/kernel/version.h
src/util/password.c
src/util/password.test.c
tests/run-turn.sh
2016-02-23 10:47:33 +01:00
Enno Rehling
29c9e719da
eliminate plane.watchers feature
...
. we don't use them anywhere
. they have no tests
. they crash readgame when watchers have died
2016-02-18 08:48:54 +01:00
Enno Rehling
8a3bb35987
eliminate global log_flags, revert the mode arguments for fopen.
...
turns out that text is default, and windows hates it if I open a binary file without 'b'
standardize on using join_path to create filenames
(use backslash on windows, even though fopen doesn't seem to care).
2016-02-05 23:10:05 +01:00
Enno Rehling
d0f8723ffb
refactoring: eliminate a_findc, and too much const-fuckery
2016-02-01 17:31:03 +01:00
Enno Rehling
2f2bbb16ab
remove wild mkdir calls all over the code, catch EEXIST errors
...
use join_path more consistently
fix a test that's intermittent on windows because fopen(..., "wb") fails, why?
2016-02-01 09:26:24 +01:00
Enno Rehling
74d8b53ba8
fix a TODO, reduce size of icastle_data
2015-12-17 12:59:12 +01:00
Enno Rehling
64b84481b2
refactoring: move parsing and allies code out of config.c
2015-11-24 18:52:09 +01:00
Enno Rehling
edcd79d044
add a config_token function to look for a token inside a list
2015-11-22 12:20:33 +01:00
Enno Rehling
a4cb5e2906
replace all get_param_* for global.parameters with config_get_*
2015-11-22 10:44:46 +01:00
Enno Rehling
efc87a16e3
clarify dragon planning code (bug 2159)
2015-11-16 16:57:51 +01:00