Enno Rehling
|
2de3c3179a
|
develop branch is now base for 3.11
|
2016-11-28 08:39:07 +01:00 |
|
Enno Rehling
|
7870b63655
|
fix VS 2015 build
|
2016-11-26 07:04:18 +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
|
78e63ed4c6
|
misleading indentation
|
2016-11-25 09:48:38 +00:00 |
|
Enno Rehling
|
ecd74c53f5
|
More PVS-Studio warnings eliminated.
|
2016-11-23 19:19:04 +01:00 |
|
Enno Rehling
|
88f5bfaf47
|
move wages and related functionality to buildin.c
|
2016-11-23 17:36:39 +01:00 |
|
Enno Rehling
|
09f22ba0bc
|
move findrace into race.c
|
2016-11-22 12:32:28 +01:00 |
|
Enno Rehling
|
925d65c206
|
move entertainmoney to economy
|
2016-11-22 12:22:07 +01:00 |
|
Enno Rehling
|
ec4060cb9a
|
fix curse-vigour calculation math.
also fix a ton of small other niggles from pvs-studio.
|
2016-11-20 19:08:39 +01:00 |
|
Enno Rehling
|
19a0c2ddb3
|
quelling some static analysis complaints.
|
2016-11-19 20:57:10 +01:00 |
|
Enno Rehling
|
7d874f1606
|
fix clang builds
|
2016-11-18 13:24:50 +01:00 |
|
Enno Rehling
|
a08563e846
|
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
|
2016-11-17 22:10:53 +01:00 |
|
Enno Rehling
|
dc2452e2c1
|
config.h globals cleanup.
|
2016-11-17 22:10:41 +01:00 |
|
Enno Rehling
|
aef475f663
|
Merge branch 'develop' of github.com:ennorehling/eressea into develop
|
2016-11-17 22:09:51 +01:00 |
|
Enno Rehling
|
cb6be542b9
|
remove unused variables.
|
2016-11-17 21:32:24 +01:00 |
|
Enno Rehling
|
27605f18ba
|
more boring macros removed.
|
2016-11-17 21:31:11 +01:00 |
|
Enno Rehling
|
303eb86399
|
factionid and curseid are also boring.
|
2016-11-17 21:29:15 +01:00 |
|
Enno Rehling
|
434cf8fce6
|
the unitid macro is boring.
|
2016-11-17 21:27:19 +01:00 |
|
Enno Rehling
|
bc5e744347
|
i2b is a bullshit macro.
|
2016-11-17 21:23:49 +01:00 |
|
Enno Rehling
|
2f305f16d9
|
additional testing for renumber.
|
2016-11-17 21:08:35 +01:00 |
|
Enno Rehling
|
6c9e1fb345
|
more config.h removal.
freset/fset/fval must die!
|
2016-11-17 17:06:31 +01:00 |
|
Enno Rehling
|
d1d1bee8f6
|
missing struct declarations in curse.h
remove config.h from spells and curses.
|
2016-11-17 11:34:35 +01:00 |
|
Enno Rehling
|
a601a675f6
|
reduce config.h even more.
let's get all those global variables out of there.
|
2016-11-17 10:42:20 +01:00 |
|
Enno Rehling
|
cbb18edb8f
|
declutter config.h, use it sparingly.
|
2016-11-17 10:38:09 +01:00 |
|
Enno Rehling
|
a88bfa7a9a
|
decluttering config.c (rules go into laws.c)
|
2016-11-16 22:46:01 +01:00 |
|
Enno Rehling
|
413f70d1a1
|
move market function out of config.c
|
2016-11-16 22:30:59 +01:00 |
|
Enno Rehling
|
360776f8b9
|
eliminate data_version variables, issue #479
|
2016-11-15 23:45:14 +01:00 |
|
Enno Rehling
|
772bc427aa
|
Merge branch 'develop' of github.com:ennorehling/eressea into develop
|
2016-11-15 20:44:02 +01:00 |
|
Enno Rehling
|
c1f468ceb0
|
begin to declutter config.c
|
2016-11-15 20:43:36 +01:00 |
|
Enno Rehling
|
5e48eac26a
|
coverity warning: NEGATIVE_RETURNS
|
2016-11-14 02:21:49 +01:00 |
|
Enno Rehling
|
03a94d1264
|
remove unused and broken backup functionality
|
2016-11-14 01:35:45 +01:00 |
|
Enno Rehling
|
2b07ae810c
|
kil xmlreport files.
remove unnecessary includes.
|
2016-11-14 01:27:59 +01:00 |
|
Enno Rehling
|
0472ac761e
|
declutter save.h (items, spellbooks)
|
2016-11-14 01:22:50 +01:00 |
|
Enno Rehling
|
d0b4f16213
|
reduce item.h include dependencies
|
2016-11-14 01:05:10 +01:00 |
|
Enno Rehling
|
d28d3f4690
|
move read/write_items to item.c.
fix bad memset in attrib.test.c.
|
2016-11-14 01:00:48 +01:00 |
|
Enno Rehling
|
0eaa750ef4
|
move read/write_attribs to attrib.h, too
|
2016-11-13 19:47: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
|
2d2ded8f0d
|
fix a_readint for deprecated attribs.
|
2016-11-13 17:57:57 +01:00 |
|
Enno Rehling
|
29d072a186
|
remove the old ORCIFICATION code.
|
2016-11-13 17:13:59 +01:00 |
|
Enno Rehling
|
7557b97dee
|
BUG 2253: Magicians cannot give men to empty units or peasants.
https://bugs.eressea.de/view.php?id=2253
|
2016-11-13 16:09:58 +01:00 |
|
Enno Rehling
|
663ad17b5a
|
extract read_region and test that it fixes bad names.
|
2016-11-12 01:03:07 +01:00 |
|
Enno Rehling
|
ec787743f0
|
extract read_faction and test that it repairs bad names
|
2016-11-12 00:47:25 +01:00 |
|
Enno Rehling
|
710811131f
|
fix bad ship and building names and descriptions in save.
|
2016-11-11 22:28:22 +01:00 |
|
Enno Rehling
|
5032d44af4
|
refactor: extract read_/write_ship functions.
add test: bad names are cleaned up (failing).
|
2016-11-11 22:25:56 +01:00 |
|
Enno Rehling
|
110e87916d
|
fix bad ship names in save file.
|
2016-11-11 21:46:56 +01:00 |
|
Enno Rehling
|
599c422852
|
refactor: extract read_/write_building.
add a failing test for conversion of bad names.
|
2016-11-11 21:41:25 +01:00 |
|
Enno Rehling
|
a47da05f51
|
test unit names get fixed during read.
|
2016-11-11 15:41:34 +01:00 |
|
Enno Rehling
|
dea1020983
|
log a warning, not an error, when fixing bad save data.
|
2016-11-11 11:10:15 +01:00 |
|
Enno Rehling
|
97e91fd8eb
|
fix bad names.
trim leading whitespace and non-printable characters from existing
unit, region and faction names/descriptions.
|
2016-11-11 00:30:49 +01:00 |
|
Enno Rehling
|
fec9945458
|
Fixing Bugs 2246 & 2251
parse error message for bad orders:
https://bugs.eressea.de/view.php?id=2251
report when TEMP-Units cannot recuit:
https://bugs.eressea.de/view.php?id=2246
|
2016-11-05 18:20:56 +01:00 |
|
Enno Rehling
|
467ffe2db0
|
include guard.h directly, not through laws.h
|
2016-11-01 22:11:10 +01:00 |
|
Enno Rehling
|
313d988e59
|
fix remaining unit test after guard changes.
|
2016-10-31 20:10:17 +01:00 |
|
Enno Rehling
|
0bcb3a853f
|
WIP: finish removing GUARD_* flags
TODO: fix failing tests
|
2016-10-31 09:40:36 +01:00 |
|
Enno Rehling
|
754ad78db7
|
WIP: remove GUARD_* flags.
TODO: does not compile
TODO: write new guard.test.c tests
|
2016-10-31 07:45:06 +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
|
a5e63a2472
|
move GUARD_* flags to guard.h
|
2016-10-30 05:37:12 +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
|
2fbc7a44d5
|
add missing tests for recent failures.
|
2016-10-23 13:02:53 +02:00 |
|
Enno Rehling
|
a921a6594a
|
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
|
2016-10-23 10:03:46 +02:00 |
|
Enno Rehling
|
f12eda8bdf
|
remove cfindhash, again.
curse and unit ids can collide, there is no reason why they should be from the same pool.
|
2016-10-23 10:03:33 +02:00 |
|
Enno Rehling
|
ac4e32a8f5
|
Merge branch 'master' into develop
|
2016-10-23 09:59:42 +02:00 |
|
Enno Rehling
|
34a6dd8d54
|
fix crash in 997: re-introduce cfindhash.
this prevents duplicate curse.no values.
|
2016-10-22 22:35:10 +02:00 |
|
Enno Rehling
|
06bfd2df5f
|
Merge remote-tracking branch 'eressea/develop' into develop
|
2016-10-16 16:48:53 +02:00 |
|
Enno Rehling
|
bf8d3b57b3
|
Merge branch 'develop' of github.com:eressea/server into develop
|
2016-10-09 10:01:36 +02:00 |
|
Enno Rehling
|
3d191b6573
|
not likely to get fixed
|
2016-10-09 10:01:31 +02:00 |
|
Enno Rehling
|
38721e2046
|
remove all mention of centaurs from the code and configuration
|
2016-10-07 19:33:50 +02:00 |
|
Enno Rehling
|
5fe0503cd8
|
remove the unicode.h include from files that don't use it.
|
2016-10-05 16:43:14 +02:00 |
|
Enno Rehling
|
e79b36bc36
|
introduced a memory leak i last commit
|
2016-10-04 10:51:37 +02:00 |
|
Enno Rehling
|
61f76e6722
|
make old_race a little bit less awful.
|
2016-10-04 10:34:18 +02:00 |
|
Enno Rehling
|
d3efc265c3
|
calculating income for dragons is no longer hard-coded
|
2016-10-04 09:14:49 +02:00 |
|
Enno Rehling
|
c53ac9d8aa
|
remove RS_FARVISION, it is the only spell that uses units.
|
2016-10-01 21:03:16 +02:00 |
|
Enno Rehling
|
c640fb4be8
|
compile in the absence of libxml2-dev
|
2016-10-01 16:39:35 +00:00 |
|
Enno Rehling
|
cbd1e8c457
|
Fixing https://bugs.eressea.de/view.php?id=2234
remove the MTF_VITAL materials flag.
remove remaining BLD_MAINTAINED vs BLD_WORKING code.
|
2016-10-01 18:34:38 +02:00 |
|
Enno Rehling
|
42c44724f8
|
testing lazy find_spell calls for equipment configuration
|
2016-09-24 17:29:55 +02:00 |
|
Enno Rehling
|
423e293745
|
some more config lookup caching
|
2016-09-23 20:39:08 +02:00 |
|
Enno Rehling
|
37a5954c20
|
NPC races cannot be recruited (and provide no score).
|
2016-09-22 20:11:14 +02:00 |
|
Enno Rehling
|
5ccb2c3dc8
|
remove recruitcost from non-player races.
make score not call old_race.
fix orcs don't get scored.
https://bugs.eressea.de/view.php?id=2241
delete some unused race-enums.
delete centaurs.
|
2016-09-22 18:28:37 +02: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
|
ff83d5108a
|
remove old_race call form heal_factor
|
2016-09-22 09:08:02 +02:00 |
|
Enno Rehling
|
a3ad9a0222
|
I am now calling get_race far too often. Fix this a bit.
|
2016-09-20 20:27:41 +02:00 |
|
Enno Rehling
|
f8ac5c390d
|
SAMRT_INTERVALS is no longer an option, but regular
|
2016-09-20 09:39:21 +02:00 |
|
Enno Rehling
|
73f33a7d0f
|
Merge branch 'develop'
Conflicts:
src/kernel/config.c
|
2016-09-19 20:22:53 +02:00 |
|
Enno Rehling
|
7d88dddcc3
|
Merge pull request #578 from ennorehling/cache-buiding-type
add an API for caching the results of bt_find
|
2016-09-19 20:14:27 +02:00 |
|
Enno Rehling
|
98d810dded
|
Merge pull request #579 from ennorehling/cache-curse-type
add an API for caching the results of ct_find
|
2016-09-19 20:14:16 +02:00 |
|
Enno Rehling
|
a7fbe4901b
|
eliminate old_race. make the catdragon act like a dragon.
|
2016-09-19 18:42:14 +02:00 |
|
Enno Rehling
|
115e13d513
|
initialize variable
|
2016-09-19 08:42:07 +02:00 |
|
Enno Rehling
|
ee77075cb6
|
cache get_race calls
|
2016-09-19 08:25:39 +02:00 |
|
Enno Rehling
|
96d6abdc5a
|
add caching API for rc_find
|
2016-09-19 06:55:32 +02:00 |
|
Enno Rehling
|
f8167ed62c
|
test get_race and others
|
2016-09-19 06:47:46 +02:00 |
|
Enno Rehling
|
fbd596fbfa
|
remove bad caching in get_race
|
2016-09-19 06:43:56 +02:00 |
|
Enno Rehling
|
9af5fb0326
|
cache some of the highest-ranking ct_find callers
|
2016-09-19 04:23:49 +02:00 |
|
Enno Rehling
|
640ba05876
|
allow local caching of bt_find results
|
2016-09-19 04:04:02 +02:00 |
|
Enno Rehling
|
e7739867df
|
use curse_type caching in att_modification
|
2016-09-19 03:55:12 +02:00 |
|
Enno Rehling
|
eb8376ef70
|
allow caching of ct_find results
|
2016-09-19 03:52:10 +02:00 |
|
Enno Rehling
|
7ef316f773
|
Merge branch 'develop' into kill-seen-region
|
2016-09-18 13:42:32 +02:00 |
|
Enno Rehling
|
6c9c460815
|
fix failing unit tests, remove deleted unit from f->units list.
|
2016-09-18 11:46:54 +02:00 |
|
Enno Rehling
|
bb689aa7b6
|
assert that f->units list is correct after remove_unit (fails)
|
2016-09-18 11:46:19 +02:00 |
|
Enno Rehling
|
e97ebb0469
|
RF_SAVEMASK needs to include RF_LIGHTHOUSE or the new report prep doesn't work.
|
2016-09-17 19:52:13 +02:00 |
|
Enno Rehling
|
74ff763b22
|
speeding up default_wage a little bit.
|
2016-09-16 21:12:03 +02:00 |
|
Enno Rehling
|
783c042d50
|
Merge branch 'develop' into kill-seen-region
Conflicts:
src/reports.c
|
2016-09-16 19:11:05 +02:00 |
|
Enno Rehling
|
acfa2cfbe5
|
remove view functions for special planes (Regatta).
|
2016-09-16 18:59:24 +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
|
6fed596c36
|
Merge branch 'develop' into kill-seen-region
|
2016-09-16 17:12:40 +02:00 |
|
Enno Rehling
|
1dac556d09
|
Fix MSVC compilation (always include platform-specific hacks).
|
2016-09-16 17:11:33 +02:00 |
|
Enno Rehling
|
ad4377c0e7
|
Merge branch 'develop' into kill-seen-region
Conflicts:
src/kernel/version.c
src/kernel/version.h
|
2016-09-16 17:08:03 +02:00 |
|
Enno Rehling
|
55df24ffb8
|
all code review nitpicks fixed.
|
2016-09-16 16:54:41 +02:00 |
|
Enno Rehling
|
b0799bd152
|
fix travis build by not depending on CMake 2.8.8
|
2016-09-16 16:30:56 +02:00 |
|
Enno Rehling
|
47526dd36b
|
smarter version.c build that avoids full rebuilds.
|
2016-09-16 16:30:43 +02:00 |
|
Enno Rehling
|
10916bb0a1
|
use add_definitions instead of CMAKE_C_FLAGS, define ERESSEA_VERSION only on version.c
|
2016-09-16 16:30:30 +02:00 |
|
Enno Rehling
|
318cf68e1b
|
move version string into a single object file
|
2016-09-16 16:30:17 +02:00 |
|
Enno Rehling
|
bf59b1adf9
|
fix travis build by not depending on CMake 2.8.8
|
2016-09-16 10:55:38 +02:00 |
|
Enno Rehling
|
dbde14fdff
|
smarter version.c build that avoids full rebuilds.
|
2016-09-16 09:39:59 +02:00 |
|
Enno Rehling
|
77e39fc64b
|
use add_definitions instead of CMAKE_C_FLAGS, define ERESSEA_VERSION only on version.c
|
2016-09-15 20:14:17 +02:00 |
|
Enno Rehling
|
d8d3cd4cc4
|
move version string into a single object file
|
2016-09-15 20:11:38 +02:00 |
|
Enno Rehling
|
4e4b4e482e
|
split off report.test from reports.test
move some tests around
|
2016-09-13 20:13:26 +02:00 |
|
Enno Rehling
|
a67950433d
|
WIP: prepare_seen vs lastregion/firstregion.
lighthouses and travelthru are handled by both, should only be in prepare_seen?
|
2016-09-12 22:03:16 +02:00 |
|
Enno Rehling
|
f946d50001
|
alternative implementation for dfindhash that doesn't use as much memory.
do not set u->faction = NULL for deleted units.
|
2016-09-11 20:09:48 +02:00 |
|
Enno Rehling
|
3e2c630c3f
|
testing that remove_unit takes unit out of the world properly.
there is more to it than this, but I'd be happy with the dfindhash check for now.
|
2016-09-11 19:39:35 +02:00 |
|
Enno Rehling
|
f07c79e5cf
|
CID 146892: null-pointer check should be an assert.
|
2016-09-11 19:09:23 +02:00 |
|
Enno Rehling
|
95481211e5
|
expect remove and unlink to set errno when file doesn't exist, reduce misleading spam.
|
2016-09-11 17:19:27 +02:00 |
|
Enno Rehling
|
402c19d8fc
|
dn't warn new player about NMR.
newbie info text was no longer valid.
|
2016-09-11 16:35:55 +02:00 |
|
Enno Rehling
|
49ccb3825f
|
test and cache all the rules!
|
2016-09-11 15:54:03 +02:00 |
|
Enno Rehling
|
86ef225ccb
|
add some more local caching.
|
2016-09-11 12:48:00 +02:00 |
|
Enno Rehling
|
f75be76ee1
|
created a new configuration caching API (config_changed).
applied this to some rules.
|
2016-09-11 12:15:53 +02:00 |
|
Enno Rehling
|
d45798b798
|
fix leaking errno from save.test call to remove
|
2016-09-11 11:06:58 +02:00 |
|
Enno Rehling
|
a41f3dbe27
|
fix memory leak, not cleaning up deadhash
|
2016-09-10 21:01:22 +02:00 |
|
Enno Rehling
|
5f915948f5
|
add a test for the deadhash feature (mathes units to dead factions)
|
2016-09-10 20:56:13 +02:00 |
|
Enno Rehling
|
7807f83830
|
fix compilation (buildno.h is gone)
|
2016-09-10 17:43:06 +02:00 |
|
Enno Rehling
|
e200952e87
|
new version numbering in version.h
eliminate buildno.h
TODO: update build scripts
|
2016-09-10 17:41:44 +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
|
cb381123ff
|
fix some calendar-related leaks and issues
|
2016-09-09 18:39:38 +02:00 |
|
Enno Rehling
|
053f8a6e09
|
clean up the dead faction hashtable between tests.
|
2016-09-08 21:15:29 +02:00 |
|
Enno Rehling
|
87328a0e92
|
eliminate memory leak in a test.
|
2016-09-08 21:01:58 +02:00 |
|
Enno Rehling
|
51c1ddc98b
|
save.test is still lekaing units.
calling test_setup and test_cleanup, doesn't fix everything.
|
2016-09-08 20:44:03 +02:00 |
|
Enno Rehling
|
93a1fe5059
|
Merge branch 'develop' of github.com:ennorehling/eressea into develop
|
2016-09-08 20:10:58 +02:00 |
|
Enno Rehling
|
ab876431de
|
reset turn to 0 before and after each test.
save tests that depend on the global turn variable would fail when being run out of order.
this cause issue #560
|
2016-09-08 19:48:36 +02:00 |
|
Enno Rehling
|
d5261ab1da
|
fix group.test leaks
|
2016-09-08 17:40:17 +02:00 |
|
Enno Rehling
|
a281ace21b
|
always create test units inside a region (so they can get destroyed in free_gamedata)
|
2016-09-08 09:11:17 +02:00 |
|
Enno Rehling
|
22586aa45f
|
fix seen.test creating a unit without a region
|
2016-09-08 09:06:02 +02:00 |
|
Enno Rehling
|
993af3a7f9
|
memory leak in equipment.skills
|
2016-09-08 06:56:16 +02:00 |
|
Enno Rehling
|
cb706c2cf2
|
equipment.test is down to two leaks and one TODO
|
2016-09-07 21:29:54 +02:00 |
|
Enno Rehling
|
d84ed1f89d
|
move static variable cleanup to kernel_done.
clean up some more.
|
2016-09-07 21:22:05 +02:00 |
|
Enno Rehling
|
144fcbef58
|
Merge branch 'develop' of github.com:ennorehling/eressea into develop
|
2016-09-07 20:48:16 +02:00 |
|
Enno Rehling
|
dda845e2f4
|
free configuration data (valgrind calls it still-reachable leaks).
|
2016-09-07 20:46:41 +02:00 |
|
Enno Rehling
|
c8283060f9
|
test_setup/cleanup for equipment.test
|
2016-09-07 19:04:42 +02:00 |
|
Enno Rehling
|
282cc129d7
|
spellbook_clear crash fix
|
2016-09-07 19:02:03 +02:00 |
|
Enno Rehling
|
dd2f146e27
|
fix equipment static memory leak
|
2016-09-07 17:09:37 +01:00 |
|
Enno Rehling
|
af310d48d6
|
remove unused function after refactoring
|
2016-09-07 17:52:12 +02:00 |
|
Enno Rehling
|
4115bff79b
|
eliminate leak from alliance.test
|
2016-09-07 17:50:51 +02:00 |
|