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
Enno Rehling
87aa7c887e
fix build
2016-02-09 14:08:36 +01:00
Enno Rehling
997d81e34a
memcpy is in string.h
2016-02-09 13:56:57 +01:00
Enno Rehling
b6e2fc28df
remove unused functions
2016-02-09 13:56:15 +01:00
Enno Rehling
5e631fd145
replace at_key with at_keys, some bugs found by tests.
2016-02-09 07:03:11 +01:00
Enno Rehling
dbcae5484e
update test to check more than one key and cleanup.
2016-02-09 06:45:46 +01:00
Enno Rehling
0189111876
update key attribute api
...
prepare to replace at_key. do not return the internals. add basic test.
2016-02-09 06:43:19 +01:00
Enno Rehling
d0f8723ffb
refactoring: eliminate a_findc, and too much const-fuckery
2016-02-01 17:31:03 +01:00
Enno Rehling
a02d71bfef
https://bugs.eressea.de/view.php?id=2176
...
generate the reduced production message before writing reports, so it shows in the CR.
2015-12-17 12:40:22 +01:00
Enno Rehling
5187788f3c
pass the parent of an attribute into a_age and attrib_type::age
2015-12-16 22:18:44 +01:00
Enno Rehling
8aa7fec54c
config.c cleanup: move attribute registration to attributes.c
2015-11-24 19:32:52 +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
b05fe9316a
introducing config_set and config_get so we don't have to refer to globals.parameters everywhere
2015-11-22 10:33:31 +01:00
Enno Rehling
6d0bcb246d
fix compilation and setting parameters to null
2015-11-09 13:55:09 +01:00
Enno Rehling
2aafa2b54f
missing test file
2015-11-09 13:41:53 +01:00
Enno Rehling
ee02721c21
fix and tests for otherfaction attributes in E2
...
https://bugs.eressea.de/view.php?id=2152
2015-11-09 13:36:52 +01:00
Enno Rehling
20ab40dc2b
Merge branch 'todo-cleanup' of github.com:ennorehling/eressea into todo-cleanup
...
Conflicts:
src/attributes/stealth.c
2015-08-27 16:54:42 +02:00
Enno Rehling
564a041b0d
eliminate invalid assertions, remove unnecessary arguments (plant/breed/trees)
2015-08-27 16:53:36 +02:00
Enno Rehling
66d8e3c7ba
fix linux build, kill invalid assert
2015-08-27 16:23:30 +02:00
Enno Rehling
de808bf146
change effskill signature to take a region, change eff_skill to work on a skill * to avoid multiple lookups.
2015-08-27 16:16:55 +02:00
Enno Rehling
dd8449783a
converting float->double in a lot of the code to prevent -Wconversion messages
2015-05-15 19:08:44 +02:00
Enno Rehling
c54cbfd472
fix copyright notice
2015-01-30 22:10:29 +01:00