Enno Rehling
2e3f68ed87
add a config_set_int convenience function.
2017-05-07 13:26:54 +02:00
Enno Rehling
635ec6d6c6
Fix a crash in TARNE <race>
...
this was complicated to test, and I had to rewrite how races and their names are registered by test_create_locale.
2017-04-17 20:11:44 +02:00
Enno Rehling
ac12cb966d
implement fixed wage functions, select by constant value
2017-03-16 16:07:52 +01:00
Enno Rehling
8d8173def3
remove the functions struct from settings (next: remove wage, too)
2017-03-13 09:30:20 +01:00
Enno Rehling
8cfcffc4aa
remove data_turn and gamename from global settings.
...
make run-turn.sh work without valgrind
2017-03-13 09:19:37 +01:00
Enno Rehling
ba3f3a17d3
require that main.c declare any ini variables that we might expect.
2017-03-12 21:03:38 +01:00
Enno Rehling
4502141c5b
bug 2292: set mailcmd from eressea.ini
...
this fixes https://bugs.eressea.de/view.php?id=2292
2017-03-02 18:28:00 +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
e19f0ad381
issue #633 : parse FACTION/PARTEI in any language.
...
added a test since the first fix did not work.
2017-01-23 10:47:49 +01:00
Enno Rehling
9ccaab6516
Korrekte Email-Subject und Adresse, auch im NR.
...
Eliminate crufty per-game strings.
2017-01-22 20:19:32 +01:00
Enno Rehling
ebbe4fa4ac
issue #629 : fix eressea.ini config
...
fixed reading of ini data into config (keys have a . here, not a :).
added a test.
removed obsolete global.inifile variable.
2017-01-21 19:53:47 +01:00
Enno Rehling
23e0943baa
read game configuration data from .ini file
2017-01-21 18:54:08 +01:00
Enno Rehling
8b7dae6977
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-10 16:31:05 +01:00
Enno Rehling
e52cf75c59
remove autoconf.h from platform.h, fix lots of includes
2016-11-25 20:15:11 +01:00
Enno Rehling
88f5bfaf47
move wages and related functionality to buildin.c
2016-11-23 17:36:39 +01:00
Enno Rehling
09f22ba0bc
move findrace into race.c
2016-11-22 12:32:28 +01:00
Enno Rehling
925d65c206
move entertainmoney to economy
2016-11-22 12:22:07 +01:00
Enno Rehling
a08563e846
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
2016-11-17 22:10:53 +01:00
Enno Rehling
dc2452e2c1
config.h globals cleanup.
2016-11-17 22:10:41 +01:00
Enno Rehling
aef475f663
Merge branch 'develop' of github.com:ennorehling/eressea into develop
2016-11-17 22:09:51 +01:00
Enno Rehling
cb6be542b9
remove unused variables.
2016-11-17 21:32:24 +01:00
Enno Rehling
27605f18ba
more boring macros removed.
2016-11-17 21:31:11 +01:00
Enno Rehling
303eb86399
factionid and curseid are also boring.
2016-11-17 21:29:15 +01:00
Enno Rehling
434cf8fce6
the unitid macro is boring.
2016-11-17 21:27:19 +01:00
Enno Rehling
bc5e744347
i2b is a bullshit macro.
2016-11-17 21:23:49 +01:00
Enno Rehling
6c9e1fb345
more config.h removal.
...
freset/fset/fval must die!
2016-11-17 17:06:31 +01:00
Enno Rehling
a601a675f6
reduce config.h even more.
...
let's get all those global variables out of there.
2016-11-17 10:42:20 +01:00
Enno Rehling
cbb18edb8f
declutter config.h, use it sparingly.
2016-11-17 10:38:09 +01:00
Enno Rehling
a88bfa7a9a
decluttering config.c (rules go into laws.c)
2016-11-16 22:46:01 +01:00
Enno Rehling
413f70d1a1
move market function out of config.c
2016-11-16 22:30:59 +01:00
Enno Rehling
360776f8b9
eliminate data_version variables, issue #479
2016-11-15 23:45:14 +01:00
Enno Rehling
c1f468ceb0
begin to declutter config.c
2016-11-15 20:43:36 +01:00
Enno Rehling
a5e63a2472
move GUARD_* flags to guard.h
2016-10-30 05:37:12 +01:00
Enno Rehling
86ef225ccb
add some more local caching.
2016-09-11 12:48:00 +02:00
Enno Rehling
f75be76ee1
created a new configuration caching API (config_changed).
...
applied this to some rules.
2016-09-11 12:15:53 +02:00
Enno Rehling
238a0e22f2
Merge branch 'test-alliance' of https://github.com/ennorehling/eressea into ennorehling-test-alliance
...
Conflicts:
src/util/CMakeLists.txt
2016-08-08 08:46:09 +02:00
Enno Rehling
d0f54bf69a
Merge branch 'feature/kill-maintenance' of https://github.com/ennorehling/eressea into ennorehling-feature/kill-maintenance
...
Conflicts:
src/kernel/config.c
src/kernel/config.h
src/tests.c
2016-07-30 23:27:03 +02:00
Enno Rehling
a834c486d9
fix a FIXME: setting default order through config, making test better.
...
this feature is not in use, so all this work is really pointless.
2016-04-09 19:05:28 +02:00
Enno Rehling
2f2bbb16ab
remove wild mkdir calls all over the code, catch EEXIST errors
...
use join_path more consistently
fix a test that's intermittent on windows because fopen(..., "wb") fails, why?
2016-02-01 09:26:24 +01:00
Enno Rehling
73f16d5bb6
adding a join_path function to try and narrow down misbehavior.
2016-01-29 19:11:48 +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
64b84481b2
refactoring: move parsing and allies code out of config.c
2015-11-24 18:52:09 +01:00
Enno Rehling
5f457f77b4
refactoring: move those count_* functions out of config.c
2015-11-22 15:46:14 +01:00
Enno Rehling
35e7a0bc79
eliminate global.cookie and the cache-invalidation which it enabled
2015-11-22 12:50:10 +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
bf74eb1446
cleanup: remove movement constatns from config.h
2015-11-22 12:41:22 +01:00
Enno Rehling
cf6084a5ca
refactoring: move game configuration defines out of config.h
...
temporarily pushing them into settings.h where others already are, though they should be in their own modules or in config files.
2015-11-22 12:37:25 +01:00
Enno Rehling
74b1f9872e
change visibility of configuration data structures, local to config.c only
2015-11-22 12:27:08 +01:00
Enno Rehling
fe173e9551
refactor: make sure global.paramteres is used only inside config.c
2015-11-22 12:24:27 +01:00