Enno Rehling
6c11e740ff
bug 2510 duplicate region after datafile read
2018-11-03 14:28:32 +01:00
Enno Rehling
a2fe396b68
do not delayed-resolve regions
2018-11-01 21:20:11 +01:00
Enno Rehling
ba9af6d765
1. region_create(uid)
...
2. read_region_reference never gets a callback, so save it.
2018-11-01 21:08:59 +01:00
Enno Rehling
35ed981cd5
help the VS heap profiler understand the code.
...
reorder calloc arguments.
rename ursprung -> origin.
2018-10-22 21:51:11 +02:00
Enno Rehling
b22d838a57
move gamedata.c to kernel
2018-09-29 13:21:46 +02:00
Enno Rehling
a373807189
move attrib and event modules to kernel
2018-09-29 11:37:17 +02:00
Enno Rehling
6f5f1651c7
fix crashes when trying to trade on ocean.
...
fix missing message sections.
2018-09-09 07:41:30 +02:00
Enno Rehling
ced21cc336
BUG 2459 Regionen recycling macht ein Reset der Rohstoffe.
2018-07-13 23:37:45 +02:00
Enno Rehling
0a9f8bf662
merge from develop
2018-05-15 21:59:01 +02:00
Enno Rehling
4240e142a5
BUG 2440: the random encounters code was completely unused.
2018-05-13 16:15:22 +02:00
Enno Rehling
edadf2cbab
exparse: parse (most of) the resource data.
2018-04-28 15:58:14 +02:00
Enno Rehling
db253ea6a1
newterrain was unfit for unit testing.
...
bad test: insects cannot trade in deserts without castle.
2018-03-04 20:03:13 +01:00
Enno Rehling
432a8d432d
messy merge of cppcheck fixes into develop
2018-02-25 20:41:53 +01:00
Enno Rehling
4181e23d15
FAST_CONNECT is always on.
...
fix more cppcheck messages.
2018-02-25 18:30:20 +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
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
4247ef96b1
why are we using the short type?
2018-01-21 11:14:55 +01:00
Enno Rehling
a6c2a878e0
remov bsdstring tests and include
2017-12-30 20:11:02 +01:00
Enno Rehling
a8140f1dc9
rename strlcpy->str_strlcpy, etc.
2017-12-30 19:49:21 +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
c78fe1ac0a
move "do not accidentally terrafomr" logic to gmtool.
2017-12-26 13:29:19 +01:00
Enno Rehling
a7b7162c56
add a safety check against accidentally drowning units in terraforming.
2017-12-26 07:04:12 +01:00
Enno Rehling
b297b4d43c
eliminate some more strlcat calls.
2017-12-11 18:35:30 +01:00
Enno Rehling
05425b5101
pull economy requests into header, rename the struct.
2017-12-04 19:20:48 +01:00
Enno Rehling
a17c8ada71
Add a test for the happy case of the BUY command.
2017-11-04 20:10:05 +01:00
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