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
Enno Rehling
4d061d8592
repair update_long_order and K_DESTROY handling according to discussion in https://bugs.eressea.de/view.php?id=2080
2015-08-04 22:47:55 +02:00
Enno Rehling
b8e17839a7
eliminate some spammy warnings.
2015-07-08 18:27:27 +02:00
Enno Rehling
e25d3c8ed1
Fix a bug reporting DETROY messages to the correct unit.
...
Add missing not-null assertions before accessing function parameters.
Eliminate all of the PVS-Studio warnings.
2015-07-07 00:49:12 +02:00
Enno Rehling
05ec74f9ec
annotate with finds from PVS Studio trial static analysis
2015-07-06 21:31:27 +02:00
Enno Rehling
22ae1b63de
Merge pull request #201 from badgerman/issue-199-sparagraph
...
bugfix sparagraph (github issue #199 ).
2015-05-20 22:54:53 +02:00
Enno Rehling
465dcf4e1c
bugfix sparagraph (github issue #199 ).
...
adding tests.
2015-05-20 18:05:25 +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
e7661434e3
fix an out-of-bounds error in the new stream-based report code when centering very short headlines, refactor indentation code, add tests.
2015-05-19 08:26:44 +02:00
Enno Rehling
dbf022b757
fix loop termination, sparagraph
2015-05-18 09:37:31 +02:00
Enno Rehling
c6b4c51b0d
fix endless loop bug.
2015-05-18 09:21:41 +02:00
Enno Rehling
053adda3b4
Merge pull request #193 from badgerman/feature-gmtool-upgrades
...
misc gmtool upgrades
2015-05-17 17:57:46 +02:00
Enno Rehling
c4d1482250
signed/unsigned comparisons (VC warning only)
2015-05-15 20:56:43 +02:00