Enno Rehling
8a3bb35987
eliminate global log_flags, revert the mode arguments for fopen.
...
turns out that text is default, and windows hates it if I open a binary file without 'b'
standardize on using join_path to create filenames
(use backslash on windows, even though fopen doesn't seem to care).
2016-02-05 23:10:05 +01:00
Enno Rehling
76475b9bf7
add a little extra randomness to the seed salt (still bad).
...
remove dead prototype code from faction.c
2016-01-15 08:01:12 +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
dc6cc41d2d
additional warnings
2016-01-12 02:27:22 +01:00
Enno Rehling
19390dd8e2
log a warning when passwords would fail for being case-sensitive.
...
add a test to enforce the status quo, for now.
2016-01-12 00:52:42 +01:00
Enno Rehling
fadc92ee52
do not leak memory for factions that have died.
2016-01-11 18:17:24 +01:00
Enno Rehling
50eba2d308
I don't really believe that this is going to work, but let's see where it fails.
2016-01-11 14:59:25 +01:00
Enno Rehling
04624179ce
make destroyfaction not have to loop over all factions to clear HELP status.
2016-01-11 14:42:36 +01:00
Enno Rehling
8742317979
hack: do not free faction when we destroy it (issue #451 )
2016-01-11 14:01:55 +01:00
Enno Rehling
ca500a499e
adding a much-needed getter function for faction_alive
2016-01-11 12:25:23 +01:00
Enno Rehling
b4389c91fe
fix compilation (what was I thinking?), remove uses of f.alive where they should not be needed.
2016-01-11 11:54:45 +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
7d426dc3ed
call destroyfaction instead of free as a quick fix
2016-01-10 12:07:00 +01:00
Enno Rehling
f559c263e3
cleanup of config.c: move more code to other modules like unit.c and faction.c
2015-11-24 19:53:27 +01:00
Enno Rehling
8aa7fec54c
config.c cleanup: move attribute registration to attributes.c
2015-11-24 19:32:52 +01:00
Enno Rehling
f7698d92a9
change how migrant quota is configured for a race, eliminate the related rule caching
2015-11-22 15:53:50 +01:00
Enno Rehling
5f457f77b4
refactoring: move those count_* functions out of config.c
2015-11-22 15:46:14 +01:00
Enno Rehling
73fc5a51b3
remove more junk defines from config.h, move them closer to where they belong
2015-11-22 12:47:57 +01:00
Enno Rehling
a4cb5e2906
replace all get_param_* for global.parameters with config_get_*
2015-11-22 10:44:46 +01:00
Enno Rehling
ee02721c21
fix and tests for otherfaction attributes in E2
...
https://bugs.eressea.de/view.php?id=2152
2015-11-09 13:36:52 +01:00
Enno Rehling
1093a23d5a
CID 22464 Division or modulo by zero
2015-11-03 23:14:06 +01:00
Enno Rehling
876e4122b1
CID 22463 Division or modulo by zero
2015-11-03 23:13:04 +01:00
Enno Rehling
2abdba9e8a
refactor free_messagelist, fix leak in test_merge_split
2015-10-14 14:08:50 +02:00
Enno Rehling
f0671aafda
leak: some tests were leaking seen_factions becaus they don't call destroyfaction or render reports
2015-10-13 23:33:11 +02:00
Enno Rehling
67135c8ea3
avoid triggering null-pointer assert
2015-10-13 21:50:23 +02:00
Enno Rehling
2f35246f8c
memory leak: when freeing factions, also free their spellbooks
2015-10-13 21:47:45 +02:00
Enno Rehling
5f7b9129bc
Merge branch 'master' into develop
...
Conflicts:
tests/runtests.bat
2015-09-12 22:47:33 +02:00
Enno Rehling
06a04d0e20
fix logging for sp_igjarjuk, temporarily set log-levels for the game to error|warn|info
...
remove some code that accesses `verbosity` variable (todo: hide it more, fix logging)
2015-09-12 19:48:03 +02:00
Enno Rehling
65c39866e1
refactor: add a faction_add_seen function that also updates [first, last) interval.
...
add tests for add_seen.
disable test_faction_add_seen, looks like it needs a valgrind check?
2015-09-09 11:08:33 +02:00
Enno Rehling
3fe0e62105
do not remove battles from dead faction before writing the report.
2015-08-16 12:06:05 +02:00
Enno Rehling
6a42b6231e
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
2015-06-21 18:32:10 +02:00
Enno Rehling
04bf7153f0
remove a faction from its alliance when it is dead.
2015-06-21 17:49:22 +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
c54cbfd472
fix copyright notice
2015-01-30 22:10:29 +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
e937749475
Merge branch 'version-3-3'
...
Conflicts:
src/build.h
src/kernel/faction.c
2015-01-11 01:25:10 +01:00
Enno Rehling
95d0b2a413
add current version of processing scripts
...
fix a crash in checkpasswd
2015-01-11 01:23:47 +01:00
Enno Rehling
901c70efd9
config cleanup contd.
...
createunit => create_unit, everywhere.
make_undead_unit in zombies.c
2014-12-25 18:40:46 +01:00
Enno Rehling
870d8001ef
more getstrtoken() removal.
...
remove obsolete argument to checkpasswd().
2014-12-22 14:34:14 +01:00
Enno Rehling
8971f59ecc
move more things out of config.c.
...
- lighthouses into their own module.
- lastregion/firstregion into reports.c.
2014-12-17 17:22:26 +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
e9084d9678
when free_gamedata, also unhash all factions. speed up is_monsters().
2014-11-07 22:58:29 +01:00
Enno Rehling
c8f2f33eab
clean up some dealings with monsters and NPCs
2014-11-07 21:15:46 +01:00
Enno Rehling
143fab9653
Some changes after talking to Don.
...
moved locale change into its own module.
made monsters get a report by default.
reoved old creation.c code, it was dead.
2014-11-06 07:15:53 +01:00
Enno Rehling
367307575c
Merge branch 'master' of github.com:eressea/server
2014-11-01 22:12:11 +01:00
Enno Rehling
59c1c23324
refactor config.c, move the find* functions into the modules they belong to.
2014-11-01 18:34:53 +01:00
Enno Rehling
f27a77d288
refactoring: use add_ally instead of manually crating the structure all over the code.
2014-10-31 15:13:05 +01:00
Enno Rehling
9c6e380ea0
Merge pull request #35 from CTD1/Monster_EMail
...
Wird schon richtig sein :-)
2014-10-16 11:53:45 +02:00
Enno Rehling
7df47fd25c
remove bad configuration caching (TODO: cache inside get_param).
...
move remove_empty_* functions out of config.c
add basic tests for remove_empty_units (no special units yet).
2014-10-16 07:41:49 +02:00
CTD1
911b93e343
Update faction.c
2014-09-25 08:59:29 +02:00
CTD
f89721ebec
Monster Email
...
kann jetzt über die config.xml eingestellt werden
2014-09-16 09:21:33 +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
b385bfc4d2
Merge branch 'fixes-891'
...
Conflicts:
src/kernel/faction.c
2014-08-17 07:23:07 +02:00
Enno Rehling
138a4c10a0
properly create missing monster faction when spawning dragons.
...
remove cached monster faction (static).
Conflicts:
src/kernel/faction.c
2014-08-17 07:14:47 +02:00
Enno Rehling
8803a9e9a8
properly create missing monster faction when spawning dragons.
2014-08-16 13:46:34 +02:00
Enno Rehling
90ec28fed3
fix missing monster factions.
2014-08-16 13:33:47 +02:00
Enno Rehling
c3dfbdea18
eliminate new_race array in favor of a function (TODO: make it fast)
2014-06-29 18:10:02 -07:00
Enno Rehling
73da14e305
getting rid of the olditemtypes[] array
...
reduce use of statics
reduce use of item_t enum
2014-06-23 07:28:10 -07:00
Enno Rehling
bff25f3c51
move skill_t into a separate file, give it unit tests.
...
name functions the same as we did for keyword/direction earlier.
to do: json configuration and lua test.
2014-06-20 23:59:04 -07:00
Enno Rehling
fa98528d72
remove old SQL patch code, we have sqlite now.
...
rearrange the SlickEdit projects.
2014-06-11 22:21:52 -07:00
Enno Rehling
3c4b6b9dd4
rename message.[hc] to messages.[hc] in kernel because of naming conflict with util/
...
begin json config files (WIP)
2014-06-09 09:56:49 -07:00
Enno Rehling
535a9e6e53
fix number of units in the report header
2014-04-26 12:24:51 -07:00
Enno Rehling
03c247c788
I am killing the core/ directory.
...
Lots of files are moving to a new location in src/
Some intersting CMake changes.
2014-02-18 05:45:00 +01:00