server/src
Enno Rehling 01078460bb Merge pull request #343 from ennorehling/feature/bug-2143-monsters-attack-buildings
bug 2143: monsters attack buildings
2015-11-02 16:40:32 +01:00
..
attributes Merge branch 'todo-cleanup' of github.com:ennorehling/eressea into todo-cleanup 2015-08-27 16:54:42 +02:00
items bugfix use_item (use_skillpotion did not use pool). 2015-05-24 07:17:23 +02:00
kernel testin building_is_active 2015-11-02 15:06:30 +01:00
modules nope, the ticket is actually required. 2015-10-30 12:58:27 +01:00
races fix indentation in every file 2015-01-30 20:37:14 +01:00
spells CID 26257: Null pointer dereferences (NULL_RETURNS) 2015-10-29 16:40:18 +01:00
tools fix indentation in every file 2015-01-30 20:37:14 +01:00
triggers fix bad castorder creation for combat spell (some unions are the WORST) 2015-08-22 18:51:10 +02:00
util CID 22570: Copy into fixed size buffer (STRING_OVERFLOW) 2015-10-30 10:57:52 +01:00
CMakeLists.txt add skeleton test suite for piracy 2015-10-12 11:54:59 +02:00
alchemy.c 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
alchemy.h remove superfluous argument from herbsearch 2015-08-27 14:46:08 +02:00
alchemy.test.c testing all the error cases for PIRACY 2015-10-12 13:27:39 +02:00
battle.c CID 22560: Copy into fixed size buffer (STRING_OVERFLOW) 2015-10-30 11:43:45 +01:00
battle.h indentation fixes (tab->spaces) 2015-06-26 14:31:21 +02:00
battle.test.c memory leak: bad call to register_buildings, replace test_create_world. 2015-10-14 12:09:35 +02:00
bind_building.c indentation fixes (tab->spaces) 2015-06-26 14:31:21 +02:00
bind_building.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_config.c allocate space for null terminator 2015-10-30 12:08:09 +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 fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_eressea.h remove obsolete commands (PRAY) and parameters 2014-06-21 07:34:36 -07:00
bind_faction.c increase the datatype for scores from int to long long 2015-09-06 19:04:04 +02: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 move bindings into src/ make the code compile from scratch again. 2014-02-22 00:32:59 -08:00
bind_locale.c directions can now be read from json configuration. 2014-06-15 22:17:08 -07:00
bind_locale.h begin binding locales (need to init_locales in the right place, still). 2014-06-14 07:52:32 -07:00
bind_log.c bindings for error logging, phase 1. 2014-06-13 13:02:03 -07:00
bind_log.h bindings for error logging, phase 1. 2014-06-13 13:02:03 -07:00
bind_message.c replace pushnumber with pushinteger where applicable (prep for Lua 5.3). 2015-06-08 20:53:40 +02:00
bind_message.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_monsters.c replace pushnumber with pushinteger where applicable (prep for Lua 5.3). 2015-06-08 20:53:40 +02:00
bind_process.c unit tests for STUDY and TEACH commands. 2015-07-09 13:24:21 +02:00
bind_process.h move bindings into src/ make the code compile from scratch again. 2014-02-22 00:32:59 -08:00
bind_region.c CID 26255: Null pointer dereferences (FORWARD_NULL) 2015-10-29 16:43:09 +01:00
bind_region.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_settings.c fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_settings.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_ship.c replace pushnumber with pushinteger where applicable (prep for Lua 5.3). 2015-06-08 20:53:40 +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 anerror in this bugfix was found by a lua test. sweet! 2015-10-29 18:55:47 +01:00
bind_storage.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bind_tolua.c try to allow visual studio to build with all warnings (/WAll) enabled. 2015-01-12 22:53:21 +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 add missing guard.h include everywhere, remove duplicate prototypes from config.h 2015-09-12 23:41:37 +02:00
bind_unit.h fix indentation in every file 2015-01-30 20:37:14 +01:00
bindings.c fix anything that uses the calendar module. opps. 2015-09-12 12:54:49 +02:00
bindings.h fix indentation in every file 2015-01-30 20:37:14 +01:00
building_action.c fix indentation in every file 2015-01-30 20:37:14 +01:00
buildno.h fix crash in mail_cmd when order is missing a message 2015-10-10 22:50:15 +02:00
calendar.c 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
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
callback.c fix indentation in every file 2015-01-30 20:37:14 +01:00
callback.h fix indentation in every file 2015-01-30 20:37:14 +01:00
callback.test.c fix indentation in every file 2015-01-30 20:37:14 +01:00
chaos.c produceexp uses a json-configurable constant 2015-09-12 16:38:51 +02: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 CID 22507: Dereference null return value (NULL_RETURNS) 2015-10-30 12:55:30 +01:00
creport.h fix missing units from CR, add a test, partially convert from FILE* to stream 2015-08-05 14:45:46 +02:00
direction.c fix indentation in every file 2015-01-30 20:37:14 +01:00
direction.h fix indentation in every file 2015-01-30 20:37:14 +01:00
direction.test.c remove invalid tests. uninitialized locales do not have default words 2015-11-01 05:35:10 +01: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 refactor: separate building_is_active from inside_building 2015-11-02 14:18:50 +01:00
economy.h refactor donations into a seaprate code module, add a basic test 2015-09-09 15:45:20 +02:00
economy.test.c cleanup: test_create_world is lazy 2015-10-13 22:31:03 +02:00
eressea.c minor leak: release memory held by curse_type structures 2015-10-15 08:38:43 +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 CID 22550: Dereference before null check (REVERSE_INULL) 2015-10-30 12:50:32 +01:00
give.h fix indentation in every file 2015-01-30 20:37:14 +01:00
give.test.c release order reference used to create castorder, message 2015-10-13 23:02:01 +02:00
gmtool.c CID 22572: Copy into fixed size buffer (STRING_OVERFLOW) 2015-10-29 20:47:07 +01:00
gmtool.h Fix the 'B' island generation to use the newfactions file, for use by new GMs. 2015-06-02 15:29:21 +02:00
gmtool_structs.h fix indentation in every file 2015-01-30 20:37:14 +01:00
guard.c move at_guard into guard module as well 2015-09-12 23:38:31 +02:00
guard.h move at_guard into guard module as well 2015-09-12 23:38:31 +02:00
helpers.c replace pushnumber with pushinteger where applicable (prep for Lua 5.3). 2015-06-08 20:53:40 +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 converting float->double in a lot of the code to prevent -Wconversion messages 2015-05-15 19:08:44 +02: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 disable features by name that are not keywords 2015-09-12 17:37:29 +02: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 disable features by name that are not keywords 2015-09-12 17:37:29 +02:00
keyword.h disable features by name that are not keywords 2015-09-12 17:37:29 +02:00
keyword.test.c remove invalid tests. uninitialized locales do not have default words 2015-11-01 05:35:10 +01:00
laws.c refactor: separate building_is_active from inside_building 2015-11-02 14:18:50 +01:00
laws.h rename hunt to follow_ship, because why was it ever called anything else? 2015-09-25 14:06:18 +02:00
laws.test.c there is a memory leak in test_long_order_hungry, but the root cause lies deeper 2015-10-14 12:51:45 +02:00
lighthouse.c 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
lighthouse.h fix copyright notice 2015-01-30 22:10:29 +01:00
listbox.c fix logging for sp_igjarjuk, temporarily set log-levels for the game to error|warn|info 2015-09-12 19:48:03 +02:00
listbox.h update cmake to compile without sqlite3, curses or libxml2 installed. 2014-06-11 20:30:34 -07:00
locale.pkg MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
locale.pkg.c MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02: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 refactor: separate building_is_active from inside_building 2015-11-02 14:18:50 +01:00
magic.h memory leak: when freeing factions, also free their spellbooks 2015-10-13 21:47:45 +02:00
magic.test.c memory leak: free spell components and spells at exit 2015-10-13 22:02:58 +02:00
main.c remove global variable `verbosity` in favor of static in main.c (use log_* functions everywhere) 2015-09-12 20:58:09 +02:00
market.c fix indentation in every file 2015-01-30 20:37:14 +01:00
market.h fix indentation in every file 2015-01-30 20:37:14 +01:00
market.test.c fix indentation in every file 2015-01-30 20:37:14 +01:00
monster.c fix copyright notice 2015-01-30 22:10:29 +01:00
monster.h Fix a bug reporting DETROY messages to the correct unit. 2015-07-07 00:49:12 +02:00
monsters.c clean up plan_monsters and make it a bit more readable 2015-11-02 15:27:01 +01:00
morale.c Refactoring morale into a separate module. 2014-12-10 19:04:02 +01:00
morale.h fix copyright notice 2015-01-30 22:10:29 +01:00
move.c CID 22571: Copy into fixed size buffer (STRING_OVERFLOW) 2015-10-30 10:55:06 +01:00
move.h refactor piracy code into a module, separate from move. 2015-10-11 21:19:38 +02:00
move.test.c leak: free route at the end of the test 2015-10-14 12:03:19 +02:00
names.c CID 22518: Parse warning (PW.PARAM_SET_BUT_NOT_USED) 2015-10-30 15:21:06 +01:00
names.h fix copyright notice 2015-01-30 22:10:29 +01:00
piracy.c CID 22514: Out-of-bounds read (OVERRUN) 2015-10-30 15:17:39 +01:00
piracy.h refactor piracy code into a module, separate from move. 2015-10-11 21:19:38 +02:00
piracy.test.c eliminate unused variable warning (gcc) 2015-10-13 23:27:13 +02: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 add a unit test for add/free prefixes. fix bad free_prefixes call site. 2015-09-12 12:41:04 +02:00
process.pkg MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
process.pkg.c MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
randenc.c integration of the separate if-conditions and simplification of the loop 2015-11-02 13:12:19 +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
report.c CID 22575 (#2-1 of 2): Copy into fixed size buffer (STRING_OVERFLOW) 2015-10-29 20:45:36 +01:00
report.h replace all at_travelunit code with travelthru_map calls. 2015-08-19 14:37:51 +02:00
reports.c CID 22561: Copy into fixed size buffer (STRING_OVERFLOW) 2015-10-30 11:45:20 +01:00
reports.h eliminate deprecated call 2015-10-27 12:40:04 +01:00
reports.test.c leak: free strlist result of split_paragraph 2015-10-13 23:06:33 +02:00
seen.c refactor: add a faction_add_seen function that also updates [first, last) interval. 2015-09-09 11:08:33 +02:00
seen.h building on linux 2015-09-09 11:09:57 +02:00
seen.test.c always call seen_done to eliminate memory leaks in tests. 2015-10-13 16:05:32 +02:00
settings.h increase the datatype for scores from int to long long 2015-09-06 19:04:04 +02:00
settings.pkg MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02:00
settings.pkg.c MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable) 2014-08-14 19:39:17 +02: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 CID 22513: Out-of-bounds read (OVERRUN) 2015-10-30 14:41:52 +01:00
spells.h test good/bad dreams 2015-05-06 18:15:10 +02:00
spells.test.c leak: test must free castorder and call cleanup 2015-10-14 12:23:58 +02:00
spy.c coverity scan CID 22511: dereference null return value 2015-10-29 09:20:58 +01:00
spy.h fix copyright notice 2015-01-30 22:10:29 +01:00
spy.test.c fix memory leaks in all tests that create an order without calling free_order at the end. 2015-10-13 15:45:38 +02:00
sqlite.c CID 26252: Memory - illegal accesses (BUFFER_SIZE_WARNING) 2015-10-29 16:51:39 +01:00
stdafx.h I am killing the core/ directory. 2014-02-18 05:45:00 +01:00
study.c refactor: separate building_is_active from inside_building 2015-11-02 14:18:50 +01:00
study.h resize buffer in eval_command, it was too small for many commands. 2015-08-06 16:52:24 +02:00
study.test.c disable random study in test to make it not intermittent 2015-08-06 20:48:14 +02:00
summary.c coverity scan CID 22503: negative array index write 2015-10-29 09:24:58 +01:00
summary.h fix indentation in every file 2015-01-30 20:37:14 +01:00
test_eressea.c avoid memory leaks when running with --list 2015-10-14 20:04:03 +02:00
tests.c leak: do not create new message_type objects in test_cleanup 2015-10-15 08:29:20 +02:00
tests.h testing all the error cases for PIRACY 2015-10-12 13:27:39 +02:00
tests.test.c fix indentation in every file 2015-01-30 20:37:14 +01:00
travelthru.c memory leak: at_travelunit contains a quicklist, needs custom cleanup code. 2015-10-13 22:09:41 +02:00
travelthru.h replace all at_travelunit code with travelthru_map calls. 2015-08-19 14:37:51 +02:00
travelthru.test.c unit needs to be in a region or test_cleanup will not free it 2015-10-14 22:19:15 +02:00
upkeep.c configuration type-fixes: int to bool where appropriate (possibly incomplete) 2015-09-11 10:04:08 +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 configuration type-fixes: int to bool where appropriate (possibly incomplete) 2015-09-11 10:04:08 +02:00
vortex.c fix indentation in every file 2015-01-30 20:37:14 +01:00
vortex.h fix compilation warning on gcc. 2014-09-29 21:22:44 +02:00
vortex.test.c make tests more valgrind-friendly by not leaking memory 2014-12-12 11:32:12 +01:00
wormhole.c fix indentation in every file 2015-01-30 20:37:14 +01:00
wormhole.h fix copyright notice 2015-01-30 22:10:29 +01:00
wormhole.test.c refactoring and tests for wormhole module. 2014-09-29 23:19:59 +02:00
xmlreport.c fix indentation in every file 2015-01-30 20:37:14 +01:00
xmlreport.h fix indentation in every file 2015-01-30 20:37:14 +01:00