Enno Rehling
ca81dadedb
missed a spot!
2016-01-31 22:12:08 +01:00
Enno Rehling
7ebfdb0747
manually smooth out a merge of two commits trying to do the same thing.
...
prevent negative parents
https://bugs.eressea.de/view.php?id=2183
2016-01-31 22:10:37 +01:00
Enno Rehling
1ec20aed16
fix crash when aging stone circles without an astral plane
2016-01-31 13:47:18 +01:00
Enno Rehling
c08235693d
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
src/kernel/item.c
src/kernel/region.c
src/laws.c
2016-01-30 23:09:02 +01:00
Enno Rehling
c557778731
fix https://bugs.eressea.de/view.php?id=2183
2016-01-30 23:04:41 +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
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
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
2aafb841a5
Merge branch 'master' into develop
...
Conflicts:
res/core/messages.xml
scripts/eressea/e3/init.lua
scripts/eressea/xmas.lua
scripts/eressea/xmasitems.lua
src/buildno.h
src/laws.c
2015-12-26 14:46:20 +01:00
Enno Rehling
b66b6f7f4c
testing christmas items, removing old xmas scripts
2015-12-22 19:33:44 +01:00
Enno Rehling
3fd4884584
putting all of the pieces together for the snow globe, with final use implementation still TBD
...
Conflicts:
scripts/eressea/xmasitems.lua
src/laws.c
2015-12-22 18:46:42 +01:00
Enno Rehling
5187788f3c
pass the parent of an attribute into a_age and attrib_type::age
2015-12-16 22:18:44 +01:00
Steffen Mecke
ad74c0a25d
fix rare bug that created negative peasants
...
when a region had non-standard wage, immigration could cause negative peasants
2015-12-08 17:57:23 +01:00
Enno Rehling
0410581907
Merge branch 'market_tests' of https://github.com/stm2/server into stm2-market_tests
...
Conflicts:
src/move.test.c
src/study.c
2015-11-26 18:42:23 +01:00
Enno Rehling
8aa7fec54c
config.c cleanup: move attribute registration to attributes.c
2015-11-24 19:32:52 +01:00
Enno Rehling
5b9333f6d9
Merge branch 'release-3.7' into develop
...
Conflicts:
src/buildno.h
src/monsters.c
2015-11-23 17:12:48 +01:00
Enno Rehling
b6a947ca0c
https://bugs.eressea.de/view.php?id=2165
...
Monster bewachten nicht, wenn sie nicht ausreichend bewaffnet waren, weil der nötige Check nicht in can_start_guarding gemacht wurde, sondern in guard_on_cmd.
2015-11-23 15:35:26 +01:00
Enno Rehling
48c75466b6
kill static caches for floating-point variables
2015-11-22 17:32:35 +01:00
Enno Rehling
2e392b4d7c
eliminate even more static variable caches
2015-11-22 16:14:27 +01:00
Enno Rehling
3bd458b5e8
optimization: read configuration once before all battles, not before or during each individual one.
2015-11-22 15:29:43 +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
7e27928d17
eliminate static variables and cache logic from more modules
2015-11-21 12:28:20 +01:00
Steffen Mecke
5326bbd9e4
refactored inside_building/building_is_active/active_building
2015-11-16 02:13:48 +01:00
Enno Rehling
9f94979b0d
Merge branch 'bug/#2144' of https://github.com/TurnerSE/server into TurnerSE-bug/#2144
2015-11-07 18:53:19 +01:00
Philipp Dreher
d5f8448d7d
changed the handling of an item the unit has no access to
...
Since the return of display_item() implies that the item, which is
definitely an item but not a potion at this point, is neither in the
inventory of the unit nor an item in the region or the faction's item
pool, the existing message 36 is now triggered in this case and the
previously conditional break is now done indepent of the outcome of
display_item, which shouldn't be critical (it's an item so it can't be
a spell or a race).
2015-11-04 23:48:30 +01:00
Enno Rehling
9d4489972b
CID 22447 Calling risky function
...
github issue #336
2015-11-04 12:09:45 +01:00
Enno Rehling
24ff4c301d
refactor: separate building_is_active from inside_building
2015-11-02 14:18:50 +01:00
Enno Rehling
d6bc1c3119
CID 22506: Dereference null return value (NULL_RETURNS)
...
always check fopen success
2015-10-30 12:54:07 +01:00
Enno Rehling
ca7d25858e
CID 22563: Copy into fixed size buffer (STRING_OVERFLOW)
...
bsdstring to the rescue, once again
2015-10-30 11:16:09 +01:00
Enno Rehling
96be12218e
test rename with missing name (not crashing, error message)
2015-10-13 14:27:42 +02:00
Enno Rehling
177f8f5288
re-enable a test that supposedly breaks on travis (find out why)
...
fix a potential null-pointer crash in rename_cmd
2015-10-13 13:32:27 +02:00
Enno Rehling
9e49e10d11
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
src/kernel/unit.test.c
2015-10-10 22:55:29 +02:00
Enno Rehling
99c385412a
fix crash in mail_cmd when order is missing a message
2015-10-10 22:50:15 +02:00
Enno Rehling
3055f517dc
move guard implementation into a module (WIP)
2015-09-12 22:53:54 +02:00
Enno Rehling
8fa3234159
Merge branch 'master' into develop
...
Conflicts:
tests/runtests.bat
2015-09-12 21:00:28 +02:00
Enno Rehling
a027139057
remove global variable verbosity
in favor of static in main.c (use log_* functions everywhere)
2015-09-12 20:58:09 +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
9bdc811582
produceexp uses a json-configurable constant
...
make get_param_flt return a double, floats are for wimps.
2015-09-12 16:38:51 +02:00
Enno Rehling
9563aa712f
eliminate junk function
2015-09-12 14:16:18 +02:00
Enno Rehling
42f1030251
separate test script for E4:
...
even though it has mostly the same rules, it does not have xmastrees, and loads a different config
remove dead `inactivefaction` function, we have no use for the file it creates.
2015-09-12 14:10:08 +02:00
Enno Rehling
09efd9c2a9
fix anything that uses the calendar module. opps.
2015-09-12 12:54:49 +02:00
Enno Rehling
f0e255924f
add a unit test for add/free prefixes. fix bad free_prefixes call site.
2015-09-12 12:41:04 +02:00
Enno Rehling
f1476c2167
refactoring: split out a module for race prefixes
2015-09-12 12:24:10 +02:00
Enno Rehling
cf08cdf3fb
configuration type-fixes: int to bool where appropriate (possibly incomplete)
...
rename some rules to make it more obvious that they are flags or other integer values.
2015-09-11 10:04:08 +02:00
Enno Rehling
564a041b0d
eliminate invalid assertions, remove unnecessary arguments (plant/breed/trees)
2015-08-27 16:53:36 +02:00
Enno Rehling
de808bf146
change effskill signature to take a region, change eff_skill to work on a skill * to avoid multiple lookups.
2015-08-27 16:16:55 +02:00