Commit Graph

66 Commits

Author SHA1 Message Date
Enno Rehling 7335d8c5c9 fix build (bad merge, self is now f) 2019-09-24 09:35:38 +02:00
Enno Rehling ade50af60b Merge branch 'master' into develop 2019-09-23 17:37:02 +02:00
Enno Rehling 52f08917d5 getn is deprecated 2019-09-15 14:33:48 +02:00
Enno Rehling fa3abe8c32 new bindings for allies.
script to fix damage from bug 2608.
2019-09-15 14:33:48 +02:00
Enno Rehling fef57d3fcf factions that idle out gift their stuff to friends 2019-09-15 14:32:48 +02:00
Enno Rehling f06fd8945c getn is deprecated 2019-09-15 14:02:53 +02:00
Enno Rehling e58f51e536 new bindings for allies.
script to fix damage from bug 2608.
2019-09-15 14:02:32 +02:00
Enno Rehling bd25c0bf6e helfe-status nach lua exponieren. 2019-09-15 14:01:33 +02:00
Enno Rehling b9ae927aa3 remove copyright notices. 2019-09-13 21:35:44 +02:00
Enno Rehling ddc8c27489 Bug 2605: testing horses and carts
fixing indentation in battle.c
2019-09-12 22:23:50 +02:00
Enno Rehling cc77ce6f20 Tests für Einheiten mit Pferden. 2019-09-10 06:40:42 +02:00
Enno Rehling 8868855837 allow setting password to null 2019-03-31 18:14:37 +02:00
Enno Rehling 89b10ee63d bug 2463 fix xmastrees, fix get_key/set_key 2018-11-03 20:30:57 +01:00
Enno Rehling 84947a7d07 unused variable 2018-10-26 22:21:38 +02:00
Enno Rehling d7a8a9b406 fix that catastrophic merge, make struct ally module-private 2018-10-26 21:49:58 +02:00
Enno Rehling 32009b7043 store passwords in swapdb 2018-10-24 09:27:48 +02: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 04b8068979 rename password functions to match PHP. 2018-09-26 21:07:39 +02:00
Enno Rehling ccc5556682 adding code to export faction information.
sqlite3 implementation only, not tied to anything yet.
add faction.uid
remove faction.subscription
2018-09-24 20:18:21 +02:00
Enno Rehling 0759482934 clean includes for bindings and main 2018-09-23 19:53:01 +02:00
Enno Rehling dfa9c64465 clean includes for bindings 2018-09-23 19:44:05 +02:00
Enno Rehling cd2624de8a stop reallocation spell parameters.
fix involuntary tree growth in test, message check.
2018-05-06 15:49:34 +02:00
Enno Rehling f98eab56c4 platform.h is only for WIN32 now.
replace MIN and MAX macros, they are BAD.
2017-12-29 06:13:28 +01:00
Enno Rehling f82fe6e963 more frequent use util/macros.h instead of platform.h 2017-12-28 18:55:45 +01:00
Enno Rehling 8e9866f0ce additional tests for spells.
also some support functionality for lua tests.
2017-05-01 19:09:00 +02:00
Enno Rehling 4c67e0603b remove attribs from rtype (it's only in rtype->construction that we use it?)
test to verify that mine bonus for iron works as advertised.
change the oder of arguments for faction.create (race is the only thing not optional).
2017-03-17 22:46:10 +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 3ea12be564 BENUTZE Muschel repariert.
at_keys hat jetzt auch zu jedem key ein value, und Funktionen zum Update altee Daten.
2017-02-13 18:48:38 +01:00
Enno Rehling 10e78b1455 remove code for dict and lua .objects properties.
rewrite muschelplateau code to use keys.
2017-02-11 22:15:21 +01:00
Enno Rehling 5ddd511aa8 continue fixing compilation (gcc/clang) 2017-01-26 18:03:48 +01:00
Enno Rehling f5419a7f45 remove superfluous quicklist includes. 2017-01-06 22:47:50 +01:00
Enno Rehling cbb18edb8f declutter config.h, use it sparingly. 2016-11-17 10:38:09 +01:00
Enno Rehling 92d027014a Make runtests more verbose in case of errors.
Eliminate stray ERROR messages from tests.
2016-10-31 20:36:05 +01:00
Enno Rehling 7807e9e710 fix integration test data file 2016-02-22 21:35:37 +01:00
Enno Rehling 7fe07439f5 fix write_faction_reference, check for f->alive in other places
TODO:
1. I added some new TODOs
2. What happens to morale when region owners die?
3. Needs tests
2016-02-22 20:47:06 +01:00
Enno Rehling 568e1a2976 prevent null-pointer crash when reading f.password (TODO: write-only variables are dumb) 2016-01-14 21:23:53 +01:00
Enno Rehling 8d05f4cc25 implement MD5 crypted passwords as default 2016-01-14 15:49:09 +01:00
Enno Rehling c3da0cd42d as long as we use no encryption, all tests pass. 2016-01-13 16:16:02 +01:00
Enno Rehling 54d25e91dd add a new password module
start adding password hashing logic (WIP)
does not yet pass all tests
2016-01-12 23:52:30 +01:00
Enno Rehling b6d44410b7 make the password pseudo-private to faction.c 2016-01-12 06:46:51 +01:00
Enno Rehling de512be1ba make destroyfaction remove the faction from the list (slightly scary change) 2016-01-11 09:55:47 +01:00
Enno Rehling 25966b3d7f add tests for snowglobe error messages 2016-01-01 16:30:09 +01:00
Enno Rehling b8df3f3a5f increase the datatype for scores from int to long long
this fixes https://bugs.eressea.de/view.php?id=2136
2015-09-06 19:04:04 +02:00
Enno Rehling 4e33e59d64 more lua_pushinteger conversion for lua 5.3 2015-06-08 21:19:17 +02:00
Enno Rehling 2967cd59cf replace pushnumber with pushinteger where applicable (prep for Lua 5.3).
also kill an unreferenced string.
2015-06-08 20:53:40 +02:00
Enno Rehling 3a03579a65 rename set_origin/get_origin into faction.c, remove argument from adjust_coordinates. add test for bug 2070. 2015-05-19 08:27:16 +02:00
Enno Rehling 03084a7ee7 set_origin: renaming German function name to English, add a simple test for it. 2015-05-05 09:47:44 -07:00
Enno Rehling 0db74d1c09 re-enable unit spells binding to Lua, remove some TODOs from the code. 2015-05-05 08:07:20 -07:00
Enno Rehling 82926318c0 fix creating factions with invalid race (return nil) 2015-04-04 15:08:35 +02:00
Enno Rehling 8edafa19c5 fix faction.create locale handling 2015-03-13 20:39:36 +01:00