Enno Rehling
0a9705809b
fix some bugs created during conversions (thanks, tests!)
2017-09-22 17:19:55 +02:00
Enno Rehling
3aed0b1ee5
fix gcc compilation
2017-09-22 16:39:46 +02:00
Enno Rehling
afe4532966
remove code for unsupported old region references
2017-09-21 17:29:01 +02:00
Enno Rehling
902e2126c9
WIP: change the resolve.h API
2017-09-21 17:29:01 +02:00
Enno Rehling
89e162c12a
change resolve.h api to use int, not variant.
2017-09-19 11:42:02 +02:00
Enno Rehling
0a3eb9ac7b
fix read/write of regioninfo.
2017-09-16 09:03:42 +02:00
Enno Rehling
423fe65377
move region display to land_region struct, oceans do not have descriptions.
2017-09-16 07:58:57 +02:00
Enno Rehling
1ac64650b0
BUG 2360: upper limits for trees.
...
https://bugs.eressea.de/view.php?id=2360
2017-08-27 20:10:27 +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
c99e92db20
kill curse cache logic, it was a bad idea.
...
ct_find is almost never what we want to do.
2017-08-21 19:43:35 +02:00
Enno Rehling
219a3159e8
sort the at_keys array, binary search.
2017-08-20 12:58:05 +02:00
Enno Rehling
3e0bc4f26d
cannot assert that free_unit has no faction (complicated reasons)
2017-06-04 14:35:15 +02:00
Enno Rehling
728f7ed389
Revert "fix some failing tests."
...
This reverts commit 8c11cb676f
.
2017-06-04 14:33:13 +02:00
Enno Rehling
8c11cb676f
fix some failing tests.
2017-06-04 14:18:28 +02:00
Enno Rehling
c7f8b16c07
remove unused r->land->items list.
2017-05-09 18:49:10 +02:00
Enno Rehling
bdc7457a08
additional testing for largestbuilding and comparisons.
2017-04-28 21:30:05 +02:00
Enno Rehling
51c2df62ca
fixing new coverity scan defects
...
167039 Dereference after null check
167038 Unchecked return value
2017-04-16 15:52:34 +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
f4eda9f59e
prefer dice to dice_rand
2017-03-06 06:28:12 +01:00
Enno Rehling
acfb666539
remove rtype->uget funpointer, and lua callbacks.
...
fix a missing lua_pop that trashed the heap.
2017-03-04 20:59:43 +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
b170a30faa
add a function to compare size of occupied castles
2017-01-25 18:17:19 +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
c1f468ceb0
begin to declutter config.c
2016-11-15 20:43:36 +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
e5dc754c25
fix demand in broken regions, after load.
2016-10-24 13:54:53 +02:00
Enno Rehling
cd69936922
fix demand in terraformed regions.
...
https://bugs.eressea.de/view.php?id=2249
2016-10-24 13:47:38 +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
c352ab9f8e
move game-version information fom version.h to gamedata.h
2016-09-10 17:21:17 +02:00
Enno Rehling
f47113e9bd
eliminate static curse variables (gbdream & more)
2016-08-29 20:31:18 +01:00
Enno Rehling
a3ff8781c4
setting herbs will warn if they are the wrong herbs.
...
planes can be erased.
add a script that erases unused planes from E2.
2016-08-18 19:04:48 +02:00
Enno Rehling
87b09cd3c6
refactor tests to use test locale where possible
2016-03-24 13:01:47 +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
7f6ced99b9
attrib.read gets a gamedata object (remove dependency on global.data_version)
2016-02-24 11:44:18 +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
c08235693d
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
src/kernel/item.c
src/kernel/region.c
src/laws.c
2016-01-30 23:09:02 +01:00
Enno Rehling
fa130d9ce5
make all the rset-asserts look the same
2016-01-24 14:57:36 +01:00
Enno Rehling
cc4367f1b7
borken merge fix
2016-01-24 14:55:43 +01:00
Enno Rehling
a66e81e90d
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
src/kernel/region.c
2016-01-24 14:55:05 +01:00
Enno Rehling
a6b15813ed
relax strict assertion (should be allowed to set ocean to 0 peasants)
2016-01-24 14:45:46 +01:00
Enno Rehling
023686fab2
add a liberal sprinkling of assertions to catch negative peasants bug 2182
2016-01-24 14:35:46 +01:00
Enno Rehling
fa55f84b41
remove unnecessary assert that prevents throwing away money on an ocean
...
github issue #437
https://bugs.eressea.de/view.php?id=2173#c6411
2015-12-16 13:32:02 +01:00
Enno Rehling
3fafb04b57
fix ahort to int converaion problems, fox PR
2015-12-11 18:03:55 +01:00
Steffen Mecke
1f4c521ac8
encapsulate r->land->peasants, money, horses, herbs, morale
2015-12-08 17:57:23 +01:00
Steffen Mecke
e2b56cd04a
fix morale change when region owner changes
...
http://bugs.eressea.de/view.php?id=2139
2015-11-12 16:09:26 +01:00
Enno Rehling
976b6aaea1
coverity CID 22593: write to pointer after free
...
github issue #324
use free_land where we need it.
2015-10-29 11:17:31 +01:00
Enno Rehling
2abdba9e8a
refactor free_messagelist, fix leak in test_merge_split
2015-10-14 14:08:50 +02:00
Enno Rehling
bdf4834dc2
leak: region_owner data was never released
2015-10-14 12:22:37 +02:00
Enno Rehling
b4971dd651
replace all of the E2 terrains with JSON data (no more XML!)
2015-09-11 22:11:59 +02:00