Enno Rehling
05bb109a09
BUG 2303: allied units are not traitors.
...
had to rewrite the creport code for this, it is probably less efficient now than ever, but at least it works.
2017-03-06 21:35:48 +01:00
Enno Rehling
4502141c5b
bug 2292: set mailcmd from eressea.ini
...
this fixes https://bugs.eressea.de/view.php?id=2292
2017-03-02 18:28:00 +01:00
Enno Rehling
7f03417c37
bug 2286: fix missing addresses.
...
was using cansee_unit wrong, mixed up traveler (ut) and target (u).
2017-03-01 21:10:50 +01:00
Enno Rehling
e0085eac0c
write a test for get_addresses before modifying it.
2017-03-01 19:52:23 +01:00
Enno Rehling
f4dc88c3be
strip rawmaterial_type to just the funpointers
2017-02-23 07:53:28 +01:00
Enno Rehling
4bd295e3b2
remove the nearly unused illusion race
2017-02-20 20:42:31 +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
75514014bc
no need to create locale here
2017-02-12 06:20:37 +01:00
Enno Rehling
456d1bd196
spellbooks should not use spellref, it's unnecessary.
2017-02-02 20:08:04 +01:00
Enno Rehling
7e69149c40
WIP: spellref everywhere
2017-02-02 16:52:32 +01:00
Enno Rehling
ee88c13732
Korrekte Email-Subject und Adresse, auch im NR.
...
Eliminate crufty per-game strings.
2017-01-26 18:06:48 +01:00
Enno Rehling
48ae12b629
emit a password message for newbie factions
2017-01-26 18:06:16 +01:00
Enno Rehling
774fa12a5a
continued work for MSVC compilation
2017-01-26 18:05:25 +01:00
Enno Rehling
d94cde67a4
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-26 18:03:48 +01:00
Enno Rehling
d71d5e413a
eliminate unnecessary strncpy use.
2017-01-26 17:57:21 +01:00
Enno Rehling
a4badc0a75
remove quicklist shim, use selist everywhere
2017-01-26 17:41:21 +01:00
Enno Rehling
c72b050a42
WIP: quicklist->selist shim can compile and link, but tests crash
2017-01-26 10:53:52 +01:00
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