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
Enno Rehling
492aba543b
delete at_scare
...
delete dead code (race.attribs has no at_skillmod)
delete race.attribs
2017-02-05 19:30:09 +01:00
Enno Rehling
ba2f35e44f
more stbool.h includes, MSVC has no unlink
2017-01-10 18:20:47 +01:00
Enno Rehling
8b7dae6977
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-10 16:31:05 +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
11b122048b
reduce dependency on save.h
...
moving a_write* functions to attrib.h, which was most of the reason everyone and their mom include save.h
2016-11-13 19:40:38 +01:00
Enno Rehling
29d072a186
remove the old ORCIFICATION code.
2016-11-13 17:13:59 +01:00
Enno Rehling
2c0f708d1b
WIP: remove at_guard, GUARD_TREES and GUARD_MINING
...
TODO: fix tests
TODO: write new guard coverage
2016-10-30 09:18:19 +01:00
Enno Rehling
ac4f8d6e7b
make monsters scaring peasants a per-race configuration.
...
reduce the number of old_race calls that monster.c makes.
2016-09-22 09:34:23 +02:00
Enno Rehling
c352ab9f8e
move game-version information fom version.h to gamedata.h
2016-09-10 17:21:17 +02:00
Enno Rehling
c032091b39
new rule: call test_setup to begin test, test_cleanup at end.
2016-08-29 14:21:28 +01:00
Enno Rehling
b1f729a379
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
2016-08-06 23:30:59 +02:00
Enno Rehling
ae3e5b8088
release version 3.8.15
2016-08-06 23:27:23 +02:00
Enno Rehling
80716d0787
fix key-upgrade function (coverity CID 102076)
...
fix MSVC warning (strncpy)
2016-05-02 19:22:57 +02:00
Enno Rehling
42849170f4
memory leak: free this test's local attrib list
2016-03-11 09:47:13 +01:00
Enno Rehling
1920dde717
memory leak: at_keys had no dtor
2016-03-10 21:54:53 +01:00
Enno Rehling
8a9d617aa3
read_referernce takes a gamedata object.
...
with all the trimmings that requires,
this is for github issue $479
2016-02-24 11:53:22 +01:00
Enno Rehling
3e584245c0
attrib.read gets a gamedata object
...
stop using global.data_version
for github issue #479
2016-02-24 11:44:19 +01:00
Enno Rehling
7f6ced99b9
attrib.read gets a gamedata object (remove dependency on global.data_version)
2016-02-24 11:44:18 +01: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
c823a3b036
handle regions that have no owner
2016-02-22 20:47:06 +01:00
Enno Rehling
5317c029d5
fix key upgrade.
...
should have had a test to begin with.
github issue #481
2016-02-13 21:38:42 +01:00