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
ac8250ecd8
remove global read_orders binding
2017-02-12 06:14:29 +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
b504899b07
fix locale initialization
2017-02-09 23:28:50 +01:00
Enno Rehling
c0692986b2
make runtests.bat not crash.
...
disable auto-load of config.lua (sob).
free messages and config in config.reset().
2017-01-26 18:06:48 +01:00
Enno Rehling
76af048fed
clean the quipment interface for lua a little bit.
2017-01-26 18:06:48 +01:00
Enno Rehling
64e45248dc
rename create_equipment function
2017-01-26 18:06:48 +01:00
Enno Rehling
e7a41a2017
missing includE
2017-01-26 18:06:48 +01:00
Enno Rehling
f4e25fe20e
try loading config.lua and custom.lua files, if they exist.
2017-01-26 18:06:48 +01:00
Enno Rehling
f86d86d4c6
Revert "remove sqlite3 code and dependency"
...
This reverts commit 7b55a57610
.
2017-01-26 18:06:48 +01:00
Enno Rehling
59916d1d5c
remove sqlite3 code and dependency
2017-01-26 18:06:48 +01:00
Enno Rehling
847cfb5425
game.start in eressea.ini overrides calendar
2017-01-26 18:06:15 +01:00
Enno Rehling
c6584d83d2
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-26 18:06:15 +01:00
Enno Rehling
f297d89958
merge monster.c and monsters.c
...
move RCF_DESERT handling to monsters.c
2017-01-26 17:57:21 +01:00
Enno Rehling
a4badc0a75
remove quicklist shim, use selist everywhere
2017-01-26 17:41:21 +01:00
Enno Rehling
cd71a21bf5
really disable reports
2016-09-13 21:09:05 +02:00
Enno Rehling
482e619969
disable reports entirely.
2016-09-13 20:17:59 +02:00
Enno Rehling
acfb06392a
Everything except report.c compiles.
...
Not that I'm not claiming that it works.
2016-09-13 17:02:51 +02:00
Enno Rehling
20578da0e9
delete the old seen.* files
...
remove includes for seen.h
remove unused functions
2016-09-13 16:58:48 +02:00
Enno Rehling
5864651b28
WIP: add a simple test for summary, add a simple dtor for them (it is still leaking stuff).
2016-09-09 17:20:09 +02:00
Enno Rehling
f2c02232cd
http://bugs.eressea.de/view.php?id=2207
...
check that there are any regions that we can seed new factions into
don't run into endless loop
2016-07-30 22:01:10 +02:00
Enno Rehling
f97b6c9821
bug: learn_skill was not learning the right skill
...
refactor: further reduce learn_skill_depr usage
2016-03-24 13:01:42 +01:00
Enno Rehling
b5a4faa745
deprecate learn_skill taking a double
...
- introduce days-based learn_skill
- add a simple test
2016-03-24 12:51:21 +01:00
Enno Rehling
02cfacd7f8
refactorings
...
- learn_skill from unit.c to study.c
- add academy.c module
2016-03-09 14:52:50 +01:00
Enno Rehling
01e864273a
crash with an assert if Lua code has syntax errors.
...
this addresses issue #474
also, correct capitalization of Lua.
2016-02-09 21:34:24 +01:00
Enno Rehling
1201a6b739
unused variable, bad version check
2016-02-09 07:06:07 +01:00
Enno Rehling
0189111876
update key attribute api
...
prepare to replace at_key. do not return the internals. add basic test.
2016-02-09 06:43:19 +01:00
Enno Rehling
91f894b290
teleport.c is the astral space implementation, and it is not one of the core concepts, so move it out of the kernel/ directory
2016-01-28 12:25:16 +01:00
Enno Rehling
4f7b274bf6
Merge branch 'master' into develop
...
Conflicts:
res/core/messages.xml
src/buildno.h
2016-01-01 16:38:57 +01:00
Enno Rehling
e1f3b3cdcf
passing order object into lua use-functions, so we can use them in error messages.
2015-12-30 21:20:59 +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
87a47e241c
CID 22479 Dereference after null check
...
CID 22478 Dereference after null check
CID 22477 Dereference after null check
CID 22476 Dereference after null check
CID 22475 Dereference after null check
2015-11-04 11:23:57 +01:00
Enno Rehling
09efd9c2a9
fix anything that uses the calendar module. opps.
2015-09-12 12:54:49 +02:00
Enno Rehling
9312b44f8e
move seen_region logic to a separate seen.[hc] module for testing.
...
currently failing test:
1) Failure (tests.report.test_lighthouse):
./scripts/tests/common.lua:1051: true expected but was false
2015-09-08 09:56:56 +02:00
Enno Rehling
4c32fe19ee
eliminate some dead code that was still marked with TODO.
2015-08-21 10:54:09 +02:00
Enno Rehling
083c848db1
merge with latest hotfix
2015-07-12 04:53:10 +02:00
Enno Rehling
7906d4469d
return to old mechanism of equipping the first unit, and give some basic necessities to special races.
2015-07-05 16:40:49 +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
70eda58604
Merge branch 'develop' of github.com:eressea/server into develop
...
Conflicts:
src/CMakeLists.txt
2015-05-17 17:52:41 +02:00
Enno Rehling
177d1c701f
Merge branch 'lua-test-framework' of https://github.com/badgerman/eressea into badgerman-lua-test-framework
...
Conflicts:
src/kernel/region.c
src/util/log.h
2015-05-17 17:39:10 +02:00
Enno Rehling
df325b243a
enable stricter conversion checking for gcc < 4.9, fix code
2015-05-15 20:35:36 +02:00
Enno Rehling
42783ff02c
binding a magician's spellbook to Lua, with test.
2015-05-05 08:44:58 -07:00
Enno Rehling
e2421b3fe7
make lua errors show up on stderr, always (log_fatal).
...
this could have been prettier. log.c could use some loving.
2015-02-23 02:47:08 +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
7bfb14b4e6
Resolve naming confusion, rename object and bind_hashtable.
...
They implement a dict-style thing, so let's call it that.
2015-01-17 13:34:48 +01:00
Enno Rehling
23b8f2bc8a
call init_locales after parse_json from Lua, downgrade missing string warnings during that to DEBUG (because it's quite common not to have them).
...
also, these int to bool conversion warnings made a good point, even if I could not reproduce them.
2015-01-08 20:55:29 +01:00
Enno Rehling
9453aff7f5
fix running game-specific tests for E3, add them to the test suite.
2014-12-31 21:07:42 +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