Enno Rehling
03d90c5680
remove BOM from UTF-8 files, replace Umlauts
2016-11-01 17:25:52 +01:00
Enno Rehling
754ad78db7
WIP: remove GUARD_* flags.
...
TODO: does not compile
TODO: write new guard.test.c tests
2016-10-31 07:45:06 +01:00
Enno Rehling
0753ea0174
fix travelthru reporting (passes unit test)
2016-09-17 08:28:33 +02:00
Enno Rehling
567083c9e8
fix bad translation key
2016-09-16 20:18:53 +02:00
Enno Rehling
d449ce4a8c
re-enable report writing, fix report.c to work without seen_region
2016-09-16 18:03:28 +02:00
Enno Rehling
4e4b4e482e
split off report.test from reports.test
...
move some tests around
2016-09-13 20:13:26 +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
0124bafdc4
delete dead code
2016-09-11 16:44:35 +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
ef5ce04335
remove unused code
2016-09-07 20:50:52 +02:00
Enno Rehling
dda845e2f4
free configuration data (valgrind calls it still-reachable leaks).
2016-09-07 20:46:41 +02:00
Enno Rehling
901cf97cb2
refactoring the "nocostbuilding" curse.
...
- remove C_NOCOST constant and other baggage
- refactor maintenance a bit
2016-08-21 20:02:19 +02:00
Enno Rehling
fef2852c5e
Reparatur Irrlichter
...
https://bugs.eressea.de/view.php?id=2227
2016-08-06 14:36:54 +02:00
Enno Rehling
db5b90e80b
clarify building_type.maxsize and add error logging for bug 2221.
...
https://bugs.eressea.de/view.php?id=2221
2016-08-06 13:52:29 +02:00
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
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
b6d44410b7
make the password pseudo-private to faction.c
2016-01-12 06:46:51 +01:00
Enno Rehling
a02d71bfef
https://bugs.eressea.de/view.php?id=2176
...
generate the reduced production message before writing reports, so it shows in the CR.
2015-12-17 12:40:22 +01:00
Steffen Mecke
1f4c521ac8
encapsulate r->land->peasants, money, horses, herbs, morale
2015-12-08 17:57:23 +01:00
Enno Rehling
6a20345b53
issue #428 , fix writing spell description for break_curse
2015-12-06 16:45:31 +01:00
Enno Rehling
b3e7fa63e0
Merge pull request #396 from stm2/spell_parameters
...
fixed treatment of spell parameters (bug 1867)
2015-12-03 11:04:57 +01:00
Enno Rehling
4b7cb824bd
Merge branch 'massive_overload' of https://github.com/stm2/server into stm2-massive_overload
...
Conflicts:
src/move.c
src/tests.c
2015-11-27 12:40:17 +01:00
Enno Rehling
7e27928d17
eliminate static variables and cache logic from more modules
2015-11-21 12:28:20 +01:00
Steffen Mecke
a7a82662b7
reduce maximum overload damage to 38%
2015-11-17 15:47:43 +01:00
Steffen Mecke
477d69152f
added tests for all kinds of syntax parameters
2015-11-13 00:57:14 +01:00
Steffen Mecke
4ab92e3caf
fixed descriptions of spells with parameters (bug #2060+1867)
2015-11-13 00:57:14 +01:00
Steffen Mecke
f3972a2390
prepared test for nr_spell
2015-11-13 00:57:14 +01:00
Enno Rehling
b7b1ae43c2
CID 22493 Dereference after null check
...
CID 22458 Logically dead code
github issue #361
2015-11-04 12:16:52 +01:00
Enno Rehling
1a715d6736
CID 22493 Dereference after null check
2015-11-04 12:14:12 +01:00
Enno Rehling
657f5044e5
CID 22495 Identical code for different branches
2015-11-04 12:11:26 +01:00
Enno Rehling
4e431b41e2
CID 22575 (#2-1 of 2): Copy into fixed size buffer (STRING_OVERFLOW)
2015-10-29 20:45:36 +01:00
Enno Rehling
6cccdec4a2
coverity scan CID 22454 (logically dead code)
2015-10-29 09:06:46 +01:00
Enno Rehling
936c201d0b
Merge pull request #312 from eressea/master
...
pull latest changes from master into develop
2015-10-11 16:47:29 +02:00
Enno Rehling
6a074fd294
only disable MSVC2015 warnings in MSVC2015, do not break confuse compilers.
2015-10-11 14:39:51 +02:00
Enno Rehling
e8880db447
get the code to compile under vs2015 (disable warnings)
2015-10-11 14:39:43 +02:00
Enno Rehling
5f7b9129bc
Merge branch 'master' into develop
...
Conflicts:
tests/runtests.bat
2015-09-12 22:47:33 +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
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
d64948f0fc
eliminate duplicate call to link_seen (and report_context.seen)
2015-09-07 19:48:53 +02: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
74d7caf526
remove dead code for base10->base36 conversion
2015-09-05 19:24:59 +02:00
Enno Rehling
a9ecd1f55e
replace all at_travelunit code with travelthru_map calls.
...
welcome to callback hell.
this should stop the buffer for travelthru from running over.
tests for this should be hell, and I still owe writing them.
2015-08-19 14:37:51 +02:00
Enno Rehling
ebe365fd6e
move travelthru logic to a separate module. todo: split off the report writing from the collection of units.
2015-08-18 18:57:04 +02:00
Enno Rehling
5bc4f7f144
add some simple tests for writing travelthru information to the report, fix test that sets errno as a side effect (thanks, Microsoft!)
2015-08-18 17:08:02 +02:00
Enno Rehling
b999e3c963
replace strlcpy/wrptr pairs with new STRLCPY macro.
2015-08-17 19:37:02 +02:00
Enno Rehling
27b5588e8f
Merge region messages and individual messages before writing them into the report.
...
This fixes https://bugs.eressea.de/view.php?id=2073
2015-08-16 11:30:44 +02:00
Enno Rehling
47dccc667b
Add a message that contains the password in the first report, so Magellan can pick it up.
...
Fix a bad type conversion when setting skills.
2015-08-15 20:25:36 +02:00
Enno Rehling
398579c293
remove duplication, fix a stray blank space in the NR.
2015-08-07 16:17:11 +02:00
Enno Rehling
816243d2d7
magicians can always identify their own curse-effects.
...
magic-resistance on a building is always visible to anybody, just like it is on units.
2015-08-07 15:52:10 +02:00