Enno Rehling
d568e79490
spellbooks contain spellref, not spell *.
...
for order-independent load from XML.
2018-05-05 07:38:11 +02:00
Enno Rehling
069047d0ac
uninitialized variable crash, seenspells.
2018-05-03 22:32:11 +02:00
Enno Rehling
fc4b7ba73d
refactor: extract cycle_route and test it (with PAUSE).
2018-04-22 11:02:05 +01:00
Enno Rehling
54ee7c04dc
seenspell conversion bugfix
2018-03-10 17:46:48 +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
5518e43591
the "moved" attribute is unused
...
so was a lot of other stuff.
2018-02-26 19:47:03 +01:00
Enno Rehling
432a8d432d
messy merge of cppcheck fixes into develop
2018-02-25 20:41:53 +01:00
Enno Rehling
e4aa8f505e
cppcheck warnings for battle
2018-02-25 14:18:36 +01:00
Enno Rehling
de52d8d669
BUG 2419: add a spell alias.
2018-02-18 11:46:05 +01:00
Enno Rehling
e300605e87
fix gcc build
2018-02-10 17:31:48 +01:00
Enno Rehling
fe29f2433a
convert multiple seenspell attributes to single seenspells list. faster? maybe.
2018-02-10 16:50:05 +01:00
Enno Rehling
1035a98fd3
make attrib use a variant, not a custom union.
...
change attrib_type methods to take a variant, not the entire attrib.
2018-02-09 21:20:43 +01:00
Enno Rehling
cfc3171021
constrict the seenspell module a bit more, move functionality inside.
2018-02-08 19:37:47 +01:00
Enno Rehling
ec48017520
move spell reporting attributes to a separate module.
2018-02-08 18:33:58 +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
7b8951b6e8
kill the fleechance attribute
2018-01-11 16:47:22 +01:00
Enno Rehling
f1b70aca6f
BUG 2405: fix mistletoe, use a curse.
2018-01-10 19:19:29 +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
cff4e12fbd
celan up tests, rename test_cleanup -> test_teardown.
2017-12-27 19:58:39 +01:00
Enno Rehling
e0bd5c2c7b
abort on OOM
2017-11-20 14:44:02 +01:00
Enno Rehling
1b53128e1a
BUG 2366: Fix cansee for seen_spell regions.
2017-10-10 20:24:20 +02:00
Enno Rehling
3aed0b1ee5
fix gcc compilation
2017-09-22 16:39:46 +02:00
Enno Rehling
902e2126c9
WIP: change the resolve.h API
2017-09-21 17:29:01 +02:00
Enno Rehling
eca1e5f973
make keys_size not return 4096 all the time.
2017-09-17 21:09:23 +02:00
Enno Rehling
ef68b8123d
smart(er) dynamic allocation of key memory.
2017-08-20 17:45:03 +02:00
Enno Rehling
219a3159e8
sort the at_keys array, binary search.
2017-08-20 12:58:05 +02:00
Enno Rehling
3ea06b23e8
Merge branch 'master' into develop
2017-08-16 21:50:40 +02:00
Enno Rehling
a8e9da1c19
do not upgrade keys for later data versions
2017-08-16 21:48:04 +02:00
Enno Rehling
6d050bb6c2
fix a_key attribute still being written.
...
simplify (and slow down) key upgrades.
2017-08-16 21:33:02 +02:00
Enno Rehling
9d8e9cc00b
at_keys is overflowing, add an assert to detect it
2017-08-16 20:48:03 +02:00
Enno Rehling
30cfe2c0c0
convert RC_SPELL to at_observer during readgame.
2017-05-24 08:18:55 +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
ed99f60186
decluttering settings.h
2017-03-31 21:37:30 +02:00
Enno Rehling
03653a7338
fix two live warnings (unicode trim and fleechance registration)
2017-03-27 18:07:44 +02:00
Enno Rehling
b3e929891d
Merge branch 'master' into develop
2017-03-11 07:22:49 +01:00
Enno Rehling
77abd703bd
backfill test that demonstrates bug 2305.
2017-03-08 20:16:01 +01:00
Enno Rehling
7022ae05bd
Merge branch 'master' into develop
...
Conflicts:
src/kernel/item.c
src/modules/arena.c
2017-03-06 22:20:22 +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
462d0118e3
better testing for some items.
2017-02-27 20:16:50 +01:00
Enno Rehling
1a0992e37b
remove remainders of the arena.
...
Auge des Drachens haben noch einige Spieler, darf nicht gelöscht werden.
move item tests to tests/items.lua
2017-02-27 18:21:41 +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
a754975ef9
fix loading data where embassy uses floats.
2017-02-18 17:52:25 +01:00
Enno Rehling
08e14f3095
coverity warnings
2017-02-14 16:23:40 +01:00
Enno Rehling
aa230cc191
fix coverity warnings
2017-02-14 12:15:36 +01:00
Enno Rehling
3ea12be564
BENUTZE Muschel repariert.
...
at_keys hat jetzt auch zu jedem key ein value, und Funktionen zum Update altee Daten.
2017-02-13 18:48:38 +01:00
Enno Rehling
e9ca536e8e
Merge branch 'master' into develop
2017-02-12 20:08:29 +01:00
Enno Rehling
f132dfe4d4
bug 2282: Datenfile 2012 kaputt.
...
make the reader for at_keys accept that sometimes, there are 0 keys.
2017-02-12 19:57:02 +01:00
Enno Rehling
10e78b1455
remove code for dict and lua .objects properties.
...
rewrite muschelplateau code to use keys.
2017-02-11 22:15:21 +01:00