Enno Rehling
6d1f4f06de
BUG 2256: kill the FFL_NEWID flag
2017-07-09 15:37:42 +02:00
Enno Rehling
4aa26343f6
the LOMEM define has never been used, kill it.
2017-04-01 20:08:04 +02:00
Enno Rehling
ed99f60186
decluttering settings.h
2017-03-31 21:37:30 +02:00
Enno Rehling
7b4550b9d6
kill faction.nregions, it is calculated but never read.
2017-03-12 14:20:34 +01:00
Enno Rehling
d633c2a9fb
BUG 2310: counting units and people.
...
reduce number of count_all loops made,
make f->num_units and f->num_people be correct.
2017-03-11 19:36:26 +01:00
Enno Rehling
0f2744fcf3
BUG 2285: remove factions' wealthfrom statistics.
2017-03-11 18:10:23 +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
48ae12b629
emit a password message for newbie factions
2017-01-26 18:06:16 +01:00
Enno Rehling
d94cde67a4
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-26 18:03:48 +01:00
Enno Rehling
a4badc0a75
remove quicklist shim, use selist everywhere
2017-01-26 17:41:21 +01:00
Enno Rehling
cbb18edb8f
declutter config.h, use it sparingly.
2016-11-17 10:38:09 +01:00
Enno Rehling
f8ac5c390d
SAMRT_INTERVALS is no longer an option, but regular
2016-09-20 09:39:21 +02:00
Enno Rehling
a67950433d
WIP: prepare_seen vs lastregion/firstregion.
...
lighthouses and travelthru are handled by both, should only be in prepare_seen?
2016-09-12 22:03:16 +02:00
Enno Rehling
f946d50001
alternative implementation for dfindhash that doesn't use as much memory.
...
do not set u->faction = NULL for deleted units.
2016-09-11 20:09:48 +02:00
Enno Rehling
402c19d8fc
dn't warn new player about NMR.
...
newbie info text was no longer valid.
2016-09-11 16:35:55 +02:00
Enno Rehling
0c6defad91
extract read_planes into a separate function.
2016-08-18 18:59:30 +02:00
Enno Rehling
d48d9a25e0
forward-declare struct gamedata
2016-02-24 11:54:23 +01:00
Enno Rehling
8a9d617aa3
read_referernce takes a gamedata object.
...
with all the trimmings that requires,
this is for github issue $479
2016-02-24 11:53:22 +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
fadc92ee52
do not leak memory for factions that have died.
2016-01-11 18:17:24 +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
ca500a499e
adding a much-needed getter function for faction_alive
2016-01-11 12:25:23 +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
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
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
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
dd667aa752
cursed factions get to fight a wolfhowl if they attack (WIP)
2015-08-22 17:56:36 +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
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
838cf3d938
try to allow visual studio to build with all warnings (/WAll) enabled.
2015-01-12 22:53:21 +01:00
Enno Rehling
870d8001ef
more getstrtoken() removal.
...
remove obsolete argument to checkpasswd().
2014-12-22 14:34:14 +01:00
Enno Rehling
2a3fdab394
remove the obsolete at_gm attribute.
...
The code did almost nothing, and player-operated quests are no longer something I want to do.
2014-12-17 17:32:32 +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
59c1c23324
refactor config.c, move the find* functions into the modules they belong to.
2014-11-01 18:34:53 +01:00
Enno Rehling
559f1f905a
Eliminate dead code: FFL_NOTIMEOUT.
...
old feature for time-limited factions, not used anywhere.
2014-10-16 07:46:08 +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
Enno Rehling
cc0b0ad71b
added a test for addfaction.
...
removing struct player, since it is not in use.
2014-08-20 23:42:33 +02:00
Enno Rehling
8803a9e9a8
properly create missing monster faction when spawning dragons.
2014-08-16 13:46:34 +02: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
86bc4e7aef
reading and writing the NPC flag was broken, because flags were a fully loaded unsigned int. making it an int instead, and adding a test.
...
fixing a bad test in which shadowmasters were deserting to faction null (causing a crash).
2014-05-05 19:11:40 -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