server/src
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
..
attributes reduce dependency on save.h 2016-11-13 19:40:38 +01:00
items remove config.h from items/ 2016-11-17 11:25:02 +01:00
kernel fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
modules factionid and curseid are also boring. 2016-11-17 21:29:15 +01:00
races sometims we only include config.h for fval. 2016-11-17 10:57:20 +01:00
spells fix clang builds 2016-11-18 13:24:50 +01:00
tools fix indentation in every file 2015-01-30 20:37:14 +01:00
triggers declare struct before use 2016-11-18 11:11:21 +01:00
util fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
CMakeLists.txt fix clang builds 2016-11-18 13:24:50 +01:00
academy.c repair the test for academies, make academy bonus use non-deprecated learn_skill 2016-03-24 13:44:29 +01:00
academy.h just a little bit of refactoring 2016-03-11 21:36:10 +01:00
alchemy.c fix last commit. 2016-11-19 16:27:37 +01:00
alchemy.h remove superfluous argument from herbsearch 2015-08-27 14:46:08 +02:00
alchemy.test.c WIP: remove GUARD_* flags. 2016-10-31 07:45:06 +01:00
battle.c fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
battle.h remove bad umlaut encodings, make sources US-ASCII. 2016-11-20 18:09:08 +01:00
battle.test.c remove more static curse_type variables 2016-08-29 20:34:30 +01:00
bind_building.c remove the BLD_WORKING flag. 2016-08-21 20:12:28 +02:00
bind_building.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_config.c eliminate global log_flags, revert the mode arguments for fopen. 2016-02-05 23:10:05 +01:00
bind_config.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_dict.c more lua_pushinteger conversion for lua 5.3 2015-06-08 21:19:17 +02:00
bind_dict.h fix preview crash in embassies.lua. 2015-02-01 10:03:30 +01:00
bind_eressea.c remove unused and broken backup functionality 2016-11-14 01:35:45 +01:00
bind_eressea.h remove obsolete commands (PRAY) and parameters 2014-06-21 07:34:36 -07:00
bind_faction.c declutter config.h, use it sparingly. 2016-11-17 10:38:09 +01:00
bind_faction.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_gmtool.c replace pushnumber with pushinteger where applicable (prep for Lua 5.3). 2015-06-08 20:53:40 +02:00
bind_gmtool.h
bind_locale.c add a lua binding to convert user-language strings to directions 2015-12-22 18:38:12 +01:00
bind_locale.h add a lua binding to convert user-language strings to directions 2015-12-22 18:38:12 +01:00
bind_message.c declutter config.h, use it sparingly. 2016-11-17 10:38:09 +01:00
bind_message.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_monsters.c WIP: test production guarding. 2016-10-28 19:42:47 +02:00
bind_order.c declutter config.h, use it sparingly. 2016-11-17 10:38:09 +01:00
bind_order.h add missing files 2015-12-30 21:22:28 +01:00
bind_process.c move renumber command to a separate module. 2016-11-15 23:34:20 +01:00
bind_process.h
bind_region.c fix demand in terraformed regions. 2016-10-24 13:47:38 +02:00
bind_region.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_ship.c delete dead code 2016-09-11 16:44:35 +02:00
bind_ship.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_sqlite.c replace pushnumber with pushinteger where applicable (prep for Lua 5.3). 2015-06-08 20:53:40 +02:00
bind_storage.c declutter config.h, use it sparingly. 2016-11-17 10:38:09 +01:00
bind_storage.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_tolua.c Address MS Visual Studio 2015 update 1 breaking changes 2015-12-16 17:01:47 +01:00
bind_tolua.h MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
bind_unit.c WIP: remove GUARD_* flags. 2016-10-31 07:45:06 +01:00
bind_unit.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bindings.c really disable reports 2016-09-13 21:09:05 +02:00
bindings.h fix indentation in every file 2015-01-30 20:37:14 +01:00
building_action.c move game-version information fom version.h to gamedata.h 2016-09-10 17:21:17 +02:00
calendar.c fix some calendar-related leaks and issues 2016-09-09 18:39:38 +02:00
calendar.h moving the calendar module out of the kernel directory, it does not belong with the major game objects 2015-09-12 12:54:09 +02:00
chaos.c declutter config.h, use it sparingly. 2016-11-17 10:38:09 +01:00
chaos.h fix copyright notice 2015-01-30 22:10:29 +01:00
config.pkg read keywords from json configuration, use German imperative forms. 2014-10-29 19:40:09 +01:00
config.pkg.c read keywords from json configuration, use German imperative forms. 2014-10-29 19:40:09 +01:00
console.c fix indentation in every file 2015-01-30 20:37:14 +01:00
console.h fix copyright notice 2015-01-30 22:10:29 +01:00
creport.c i2b is a bullshit macro. 2016-11-17 21:23:49 +01:00
creport.h split off report.test from reports.test 2016-09-13 20:13:26 +02:00
creport.test.c disable reports entirely. 2016-09-13 20:17:59 +02:00
direction.c fix memory leak in umlaut.c with reference counting (sad). 2016-09-06 19:57:07 +01:00
direction.h fix indentation in every file 2015-01-30 20:37:14 +01:00
direction.test.c relocate the addtoken leak "test" to umlaut.test.c 2016-09-05 18:46:02 +02:00
donations.c kill stray semicolon 2015-09-10 21:22:55 +02:00
donations.h refactor donations into a seaprate code module, add a basic test 2015-09-09 15:45:20 +02:00
donations.test.c refactor donations into a seaprate code module, add a basic test 2015-09-09 15:45:20 +02:00
economy.c fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
economy.h add (failing) test for recruiting into existing units. 2016-09-18 11:34:54 +02:00
economy.test.c calculating income for dragons is no longer hard-coded 2016-10-04 09:14:49 +02:00
eressea.c re-enable creport 2016-09-17 22:57:22 +02:00
eressea.h fix indentation in every file 2015-01-30 20:37:14 +01:00
eressea.pkg MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
eressea.pkg.c MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
game.pkg MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
game.pkg.c MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
give.c fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
give.h fix indentation in every file 2015-01-30 20:37:14 +01:00
give.test.c arguments for test_setup that help debugging tests. 2016-11-16 18:08:10 +01:00
gmtool.c remove unused and broken backup functionality 2016-11-14 01:35:45 +01:00
gmtool.h support different editor codepages 2016-08-07 19:19:35 +02:00
gmtool_structs.h fix indentation in every file 2015-01-30 20:37:14 +01:00
guard.c move read/write_attribs to attrib.h, too 2016-11-13 19:47:36 +01:00
guard.h remove BOM from UTF-8 files, replace Umlauts 2016-11-01 17:25:52 +01:00
guard.test.c WIP: finish removing GUARD_* flags 2016-10-31 09:40:36 +01:00
helpers.c move game-version information fom version.h to gamedata.h 2016-09-10 17:21:17 +02:00
helpers.h fix indentation in every file 2015-01-30 20:37:14 +01:00
inc fix tolua, I guess 2015-07-11 23:45:59 +02:00
items.c fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
items.h fix indentation in every file 2015-01-30 20:37:14 +01:00
json.c increase the datatype for scores from int to long long 2015-09-06 19:04:04 +02:00
json.h remove obsolete commands (PRAY) and parameters 2014-06-21 07:34:36 -07:00
json.test.c test-only leak: do some json surgery and delete the entire tree from the export 2015-10-15 09:06:44 +02:00
jsreport.c remove BOM from UTF-8 files, replace Umlauts 2016-11-01 17:25:52 +01:00
jsreport.h Implement an optional JSON report writer. Currently writes readable maps for Tiled. 2015-03-29 14:03:56 +02:00
keyword.c coverity warning: NEGATIVE_RETURNS 2016-11-14 02:21:49 +01:00
keyword.h begin to declutter config.c 2016-11-15 20:43:36 +01:00
keyword.test.c coverity warning: NEGATIVE_RETURNS 2016-11-14 02:21:49 +01:00
laws.c fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
laws.h decluttering config.c (rules go into laws.c) 2016-11-16 22:46:01 +01:00
laws.test.c test that ship and building cannot be named poorly. 2016-11-11 14:00:04 +01:00
lighthouse.c squash some static analysis warnings. 2016-11-19 15:19:23 +01:00
lighthouse.h test lighthouses 2016-09-17 12:34:02 +02:00
lighthouse.test.c re-enable report tests. 2016-09-18 10:24:08 +02:00
listbox.c stop spamming the log when using a listbox. 2016-11-16 23:09:07 +01:00
listbox.h update cmake to compile without sqlite3, curses or libxml2 installed. 2014-06-11 20:30:34 -07:00
locale.pkg add a lua binding to convert user-language strings to directions 2015-12-22 18:38:12 +01:00
locale.pkg.c add a lua binding to convert user-language strings to directions 2015-12-22 18:38:12 +01:00
log.pkg MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
log.pkg.c MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
magic.c i2b is a bullshit macro. 2016-11-17 21:23:49 +01:00
magic.h remove RS_FARVISION, it is the only spell that uses units. 2016-10-01 21:03:16 +02:00
magic.test.c use test_setup to start tests 2016-09-08 08:12:26 +02:00
main.c reduce config.h even more. 2016-11-17 10:42:20 +01:00
market.c move market function out of config.c 2016-11-16 22:30:59 +01:00
market.h move market function out of config.c 2016-11-16 22:30:59 +01:00
market.test.c remove the BLD_WORKING flag. 2016-08-21 20:12:28 +02:00
monster.c fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
monster.h sometims we only include config.h for fval. 2016-11-17 10:57:20 +01:00
monsters.c fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
monsters.h split out seaserpent creation for testing 2016-08-31 11:35:07 +02:00
monsters.test.c WIP: remove GUARD_* flags. 2016-10-31 07:45:06 +01:00
morale.c encapsulate r->land->peasants, money, horses, herbs, morale 2015-12-08 17:57:23 +01:00
morale.h fix copyright notice 2015-01-30 22:10:29 +01:00
move.c squash some static analysis warnings. 2016-11-19 15:19:23 +01:00
move.h move is_guarded from move.h to guard.h 2016-10-29 19:15:49 +02:00
move.test.c quelling some static analysis complaints. 2016-11-19 20:57:10 +01:00
names.c CID 146892: null-pointer check should be an assert. 2016-09-11 19:09:23 +02:00
names.h refactoring prior to removing static variable 2016-08-28 18:15:00 +01:00
names.test.c make describe_braineater more generic (describe_race). 2016-08-28 20:44:45 +01:00
piracy.c fix order-related memory leaks 2016-09-06 21:07:23 +02:00
piracy.h fix piracy order aliasing issue #549 2016-09-01 20:40:07 +01:00
piracy.test.c quelling some static analysis complaints. 2016-11-19 20:57:10 +01:00
platform.h only disable MSVC2015 warnings in MSVC2015, do not break confuse compilers. 2015-10-11 14:39:51 +02:00
prefix.c implement JSON prefixes. fix free_prefixes not resetting size (TODO: quicklist). 2015-09-12 12:49:12 +02:00
prefix.h free race prefixes when the game is done (small memory leak). 2015-09-12 12:29:42 +02:00
prefix.test.c new rule: call test_setup to begin test, test_cleanup at end. 2016-08-29 14:21:28 +01:00
process.pkg move renumber command to a separate module. 2016-11-15 23:34:20 +01:00
process.pkg.c move renumber command to a separate module. 2016-11-15 23:34:20 +01:00
randenc.c remove the old ORCIFICATION code. 2016-11-13 17:13:59 +01:00
randenc.h converting float->double in a lot of the code to prevent -Wconversion messages 2015-05-15 19:08:44 +02:00
renumber.c additional testing for renumber. 2016-11-17 21:08:35 +01:00
renumber.h move renumber command to a separate module. 2016-11-15 23:34:20 +01:00
renumber.test.c set volcano acitvation chance to 0 during test. 2016-11-18 22:31:06 +01:00
report.c fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
report.h fix travelthru reporting (passes unit test) 2016-09-17 08:28:33 +02:00
report.test.c split off report.test from reports.test 2016-09-13 20:13:26 +02:00
reports.c quelling some static analysis complaints. 2016-11-19 20:57:10 +01:00
reports.h declutter config.h, use it sparingly. 2016-11-17 10:38:09 +01:00
reports.test.c re-organize lighthouse reporting. 2016-10-05 20:36:01 +02:00
settings.h remove bad umlaut encodings, make sources US-ASCII. 2016-11-20 18:09:08 +01:00
settings.pkg 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
settings.pkg.c 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
skill.c CID 22554: Improper use of negative value (REVERSE_NEGATIVE) 2015-10-30 12:40:48 +01:00
skill.h refactor donations into a seaprate code module, add a basic test 2015-09-09 15:45:20 +02:00
skill.test.c remove invalid tests. uninitialized locales do not have default words 2015-11-01 05:35:10 +01:00
spells.c squash some static analysis warnings. 2016-11-19 15:19:23 +01:00
spells.h test good/bad dreams 2015-05-06 18:15:10 +02:00
spells.test.c pass the parent of an attribute into a_age and attrib_type::age 2016-02-20 16:50:04 +01:00
spy.c include guard.h directly, not through laws.h 2016-11-01 22:11:10 +01:00
spy.h fix copyright notice 2015-01-30 22:10:29 +01:00
spy.test.c new rule: call test_setup to begin test, test_cleanup at end. 2016-08-29 14:21:28 +01:00
sqlite.c remove the unicode.h include from files that don't use it. 2016-10-05 16:43:14 +02:00
study.c the unitid macro is boring. 2016-11-17 21:27:19 +01:00
study.h Bug 2255: increase the max. number of teachers. 2016-11-13 19:00:59 +01:00
study.test.c I am now calling get_race far too often. Fix this a bit. 2016-09-20 20:27:41 +02:00
summary.c fix curse-vigour calculation math. 2016-11-20 19:08:39 +01:00
summary.h WIP: add a simple test for summary, add a simple dtor for them (it is still leaking stuff). 2016-09-09 17:20:09 +02:00
summary.test.c delete files created by report_summary 2016-09-15 21:16:45 +02:00
teleport.c squash some static analysis warnings. 2016-11-19 15:19:23 +01:00
teleport.h get_normalplane is unnecessary 2016-01-28 12:46:38 +01:00
test_eressea.c eliminate unused callback module. 2016-11-17 10:32:20 +01:00
tests.c arguments for test_setup that help debugging tests. 2016-11-16 18:08:10 +01:00
tests.h arguments for test_setup that help debugging tests. 2016-11-16 18:08:10 +01:00
tests.test.c use test_setup to start tests 2016-09-08 08:12:26 +02:00
travelthru.c remove BOM from UTF-8 files, replace Umlauts 2016-11-01 17:25:52 +01:00
travelthru.h remove BOM from UTF-8 files, replace Umlauts 2016-11-01 17:25:52 +01:00
travelthru.test.c remove BOM from UTF-8 files, replace Umlauts 2016-11-01 17:25:52 +01:00
upkeep.c reduce get_race calls by a few more 2016-09-22 15:51:11 +02:00
upkeep.h cleaning out config.c, there is too much code in there. 2014-08-31 16:50:37 +02:00
upkeep.test.c quelling some static analysis complaints. 2016-11-19 20:57:10 +01:00
volcano.c github issue #606 2016-11-18 13:30:30 +01:00
volcano.h activate, fix and improve volcano test. 2016-08-26 17:26:26 +01:00
volcano.test.c use test_setup to start tests 2016-09-08 08:12:26 +02:00
vortex.c move game-version information fom version.h to gamedata.h 2016-09-10 17:21:17 +02:00
vortex.h fix compilation warning on gcc. 2014-09-29 21:22:44 +02:00
vortex.test.c new rule: call test_setup to begin test, test_cleanup at end. 2016-08-29 14:21:28 +01:00
wormhole.c move game-version information fom version.h to gamedata.h 2016-09-10 17:21:17 +02:00
wormhole.h fix copyright notice 2015-01-30 22:10:29 +01:00
wormhole.test.c new rule: call test_setup to begin test, test_cleanup at end. 2016-08-29 14:21:28 +01:00