Enno Rehling
2282160916
separate lighthouse_view_distance from lighthouse_range.
2018-07-18 20:49:17 +02:00
Enno Rehling
fc80e4b83e
BUG 2462: Leuchtturm meldet keine Landregionen, beschützt Schiffe erst ab Größe 10.
2018-07-17 20:53:34 +02:00
Enno Rehling
820264aa82
BUG 2461: Liste der Angreifer zeigt nicht alle Parteien.
2018-07-15 13:39:23 +02:00
Enno Rehling
de7248fb5a
BUG 2457: Einheiten werden bei Durchreise nicht angezeigt.
2018-07-13 22:45:17 +02:00
Enno Rehling
2b0b7cd0f8
BUG 2447: PArtei fehlt im Kampfreport.
...
replace strcpy with strcat
2018-06-18 20:33:28 +02:00
Enno Rehling
0e3170a0cb
merge
2018-05-05 07:39:25 +02:00
Enno Rehling
d568e79490
spellbooks contain spellref, not spell *.
...
for order-independent load from XML.
2018-05-05 07:38:11 +02:00
Enno Rehling
08663b6eb5
fix last commit. refactoring with the MSVC IDE is prone to errors.
2018-04-28 15:57:51 +02:00
Enno Rehling
da984b5880
BUG 2425: lighthouses can see units.
2018-03-11 14:40:38 +01:00
Enno Rehling
6c0f8a81f6
merge from master
2018-02-26 19:51:48 +01:00
Enno Rehling
622c103b00
more cppcheck messages
2018-02-26 19:48:52 +01:00
Enno Rehling
cf46acdc6a
bufunit does not write an indent, doe not need the parameter.
2018-02-24 19:46:34 +01:00
Enno Rehling
42c86d122e
stop using MINMAX macros.
2018-02-24 19:41:36 +01:00
Enno Rehling
f9fcc01829
print more debug information when a name is missing.
2018-02-17 21:18:00 +01:00
Enno Rehling
cb537b1a93
missing translations are the worst.
2018-02-17 21:08:58 +01:00
Enno Rehling
d15684a546
fix test_process_turn failure.
...
move turn global to calendar.
promote calendar module to kernel.
2018-02-14 20:01:36 +01:00
Enno Rehling
b5ea102372
cppcheck: scope reductions and a false positive.
2018-02-11 16:14:00 +01:00
Enno Rehling
ba14fab3a3
macros should have uppercase names.
2018-02-03 14:49:35 +01:00
Enno Rehling
e233d08e8f
move more reporting code to reports.c
2018-01-26 17:39:15 +01:00
Enno Rehling
0170a6fc09
move bsdstring use to reports.c
2018-01-25 21:31:09 +01:00
Enno Rehling
d38582360a
mistletoe as curse (bad idea)
2018-01-21 11:03:48 +01:00
Enno Rehling
a48d177472
BUG 2401: fix combat display, again.
2018-01-07 17:22:15 +01:00
Enno Rehling
ddd30e6210
sbstring implmentation and first use.
2017-12-31 18:07:29 +01:00
Enno Rehling
643c989cf9
BUG 2401: fix attacker list, move code to reports.c
2017-12-31 15:05:49 +01:00
Enno Rehling
a8140f1dc9
rename strlcpy->str_strlcpy, etc.
2017-12-30 19:49:21 +01:00
Enno Rehling
50173d5be3
PATH_MAX and MAX_PATH are crazy.
2017-12-29 11:44:14 +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
5b1d27542a
reduce dependence on platform.h.
...
gradually stop using MAX and MIN (mistakes were made).
2017-12-28 18:29:40 +01:00
Enno Rehling
5dabd19504
add tests for visible_unit, remove unused cansee_ex
2017-12-23 17:49:30 +01:00
Enno Rehling
6bd4e543ba
BUG 2395: lighthouses were seeing units they should not.
...
DRY!
2017-12-23 17:37:24 +01:00
Enno Rehling
cba452786f
BUG 2396: insect recruit messages fixed, and tests added.
2017-12-22 11:15:17 +01:00
Enno Rehling
290a07e763
Merge branch 'develop'
2017-11-15 20:39:20 +01:00
Steffen Mecke
0aa5a64c63
allow empty faction email
2017-11-15 12:12:42 +01:00
Enno Rehling
79aecf21b5
Merge branch 'develop'
2017-10-18 19:40:00 +02:00
Enno Rehling
e2c7b2c711
merge with master, which was far behind
2017-10-15 20:32:19 +02:00
Enno Rehling
34cd692c2d
remove the locale from orders.
2017-10-13 19:33:28 +02:00
Enno Rehling
1b53128e1a
BUG 2366: Fix cansee for seen_spell regions.
2017-10-10 20:24:20 +02:00
Enno Rehling
9d1e1a2e32
BUG 2369 workaround: do not assert at_mage.
2017-10-07 20:44:50 +02:00
Enno Rehling
f594a908df
deprecate old get_mage implementation.
...
fix test_familiar_equip with new get_mage.
2017-10-06 21:53:07 +02:00
Enno Rehling
95695c1b54
remove log_orders because I'm never using it and it costs time.
...
reduce memory reserved for balloc.
2017-09-23 21:12:50 +02:00
Enno Rehling
5e204083b8
remove noreply email, monster report.
2017-09-18 21:43:52 +02:00
Enno Rehling
fd27534132
coverity CID 173897 Pointer to local outside scope
2017-09-18 20:23:31 +02:00
Enno Rehling
2dd159841e
Merge branch 'master' into develop
2017-08-24 16:47:24 +02:00
Enno Rehling
7985ebe511
replace ct_find calls with constants.
...
reorder a lot of includes.
2017-08-21 20:18:19 +02:00
Enno Rehling
233ea9dce4
BUG 2337: lighthouse capacity is # of units, not people.
2017-07-17 17:08:27 +02:00
Enno Rehling
de1e0ae916
fix indentation
2017-07-09 10:43:53 +02:00
Enno Rehling
6fa471bb97
merge conflicts from the 13.2.3 release
2017-07-09 10:42:10 +02:00
Enno Rehling
7790ebd671
Valenar crash: bad report interval when a faction has no units.
2017-06-26 20:39:05 +02:00
Enno Rehling
3306488641
Merge pull request #695 from ennorehling/feature/refactor-rcspell
...
refactor observers, lighthouses
2017-05-28 12:50:05 +02:00
Enno Rehling
9e213d3bcd
minor optimization and using fraction code
2017-05-26 19:05:46 +02:00
Enno Rehling
30cfe2c0c0
convert RC_SPELL to at_observer during readgame.
2017-05-24 08:18:55 +02:00
Enno Rehling
51f8f87072
eliminate the O(n) lighthouse/inside complexity from prepare_report
2017-05-22 21:15:42 +02:00
Enno Rehling
abb7c9fb17
Merge branch 'kill-rcspell' into feature/refactor-rcspell
...
Conflicts:
src/kernel/config.h
src/main.c
src/report.c
src/reports.c
src/reports.test.c
src/spells.c
2017-05-21 21:33:29 +02:00
Enno Rehling
22c05963fd
fix illusioncastle reporting.
2017-05-01 14:49:06 +02:00
Enno Rehling
17145eaf10
make region:set_resource do the right thing
...
also for adamantium
2017-03-22 20:37:09 +01:00
Enno Rehling
ae41cafcb4
fix double free in new lighthouse code
2017-03-12 11:19:40 +01:00
Enno Rehling
783bba0467
Merge pull request #672 from ennorehling/lighthouse-speedup
...
lighthouses speedup
2017-03-11 16:17:37 +01:00
Enno Rehling
3f562e7fc9
Merge branch 'develop' into lighthouse-speedup
...
Conflicts:
src/reports.c
src/reports.test.c
2017-03-11 16:08:14 +01:00
Enno Rehling
8b9f0f0894
BUG 2307: report mallorn trees as Mallorn in the CR.
...
for legacy compatibility, we cannot call them Mallornbaeume.
2017-03-10 23:18:09 +01:00
Enno Rehling
f54165d4f1
BUG 2309: show true faction to allies.
...
https://bugs.eressea.de/view.php?id=2309
2017-03-08 20:30:32 +01:00
Enno Rehling
ba8f51b7d4
Merge pull request #667 from ennorehling/hotfix/config-2301
...
fix bugs 2301, 2302, 2303
2017-03-06 21:57:23 +01:00
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
0379a17350
make report_resource return an rtype, not a name.
2017-03-05 17:42:57 +01:00
Enno Rehling
52dd11a28f
create a failing test for stones in the NR.
2017-03-05 17:18:17 +01:00
Enno Rehling
6a87625409
refactor cr_output_resources for easy testing.
...
Write a (failing) test that checks first resource is silver.
2017-03-05 15:26:04 +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
15702daf99
Add a new attribute and RF_OBSERVER flag.
2016-09-25 13:01:51 +02:00
Enno Rehling
87873702ca
eliminate RS_FARVISION enum, there is no other kind of RC_SPELL.
2016-09-24 20:31:31 +02:00
Enno Rehling
d758f065d5
only use lists for lighthouses with range > 3.
2016-09-24 11:33:00 +02:00
Enno Rehling
9eb376e0e5
clumsy repair of duplicate regions for range >= 2 (RF_MARK)
2016-09-24 11:20:33 +02:00
Enno Rehling
c755c1d69e
for short lighthouse ranges, don't use lists.
2016-09-23 19:51:33 +02:00
Enno Rehling
b0905f8e6e
incomplete new get_regions_distance implementation
2016-09-23 17:03:18 +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