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
Enno Rehling
da9c33268c
fix preview crash in embassies.lua.
...
the "objects" dictionary is no longer of type hashtable, that usertype has been renamed to dict.
2015-02-01 10:03:30 +01:00
Enno Rehling
abca25d1d5
fix indentation in every file
...
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
2015-01-30 20:37:14 +01:00
Enno Rehling
0c54c7e32d
always nice to eliminate a few TODO's and kill some bitrot.
2014-12-09 23:27:05 +01:00
Enno Rehling
4d329b8bf8
fix missing get_faction binding, add faction.get()
2014-11-26 17:44:02 +01:00
Enno Rehling
5b9eb9080f
refactoring: move all monster-related code into monster.c
...
make some features depend on being NPCs, not monster faction.
2014-11-11 16:53:56 +01:00
Enno Rehling
1af315ebf2
move magic out of kernel, into src.
...
clean up/remove a ton of includes, especially of types.h (include in header if you need it, not in every .c file).
2014-11-01 12:57:01 +01:00
Enno Rehling
bac3286440
re-implement faction:add_message for Lua.
...
only ancient xmas scripts were using it, but it's a useful function to have.
2014-10-12 21:26:25 +02:00
Enno Rehling
cf1f3972b6
cleaning out config.c, there is too much code in there.
...
rules should be in their own modules. here:
upkeep is a concept all by itself, should have its own tests, etc.
movement code should be in move.c.
cleaning up some superfluous include directives.
2014-08-31 16:50:37 +02:00
Enno Rehling
4c00777553
make race::_name a string, not an array of strings. add a test for rc_name.
2014-08-24 23:58:29 +02:00
Enno Rehling
92f43a7b51
eliminate it_find calls, replace it_find with something backed by rt_find
2014-06-24 22:44:05 -07:00
Enno Rehling
64e0c221ec
directions can now be read from json configuration.
...
rename a couple of functions for more consistency across modules.
2014-06-15 22:17:08 -07:00