Enno Rehling
b631f539ce
simplify atoi36, it does not need to eat whitespace
2015-09-05 18:18:22 +02:00
Enno Rehling
5fc1587879
age_unit accidentally returned AT_AGE_REMOVE (caused by a recent change to curse_age)
2015-08-25 22:50:58 +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
c8cbeea660
STRLCPY macro redefinition and fixes for gcc. work for monkeys.
2015-08-17 22:48:21 +02:00
Enno Rehling
7e64f3177d
refactoring: rewrite tests to use test_find_messagetype instead of assert_messages.
...
tests: add cleanup of message_types to reduce global state.
2015-08-17 19:36:28 +02:00
Enno Rehling
1806030baa
new all-in-one strlcpy and wrptr function
2015-08-17 19:28:05 +02:00
Enno Rehling
dcececf4fa
Debug: move errno testing closer to the report-writing, so we know which report caused the error.
...
Fix: wrptr gets the result from _snprintf, which is int, not size_t.
2015-08-17 16:17:08 +02:00
Enno Rehling
420574c7e4
add unit-test for casting spells, fix spell-casting (was looking for thisorder), all E3 tests pass again
2015-08-05 10:25:25 +02:00
Enno Rehling
009993f2f4
address some PVS comments
2015-07-21 09:01:11 +02:00
Enno Rehling
6ea859ecea
ignore PVS=-Studio files
2015-07-12 13:15:10 +02:00
Enno Rehling
7087c0e0ab
Update to latest submodules, fix iniparser and critbit.
...
I did this before, must have lost it in the merge. Crazy.
2015-07-12 10:38:01 +02:00
Enno Rehling
b8e17839a7
eliminate some spammy warnings.
2015-07-08 18:27:27 +02:00
Enno Rehling
76a9dd6741
Merge remote-tracking branch 'upstream/develop' into develop
2015-07-07 15:34:42 +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
ef4052b0f6
the outcome of a casual static analysis session.
2015-07-06 19:53:09 +02:00
Enno Rehling
c42227c9e4
Bug 1838: Giftwolken dauern nur eine Woche, erscheinen nicht im Report.
...
https://bugs.eressea.de/view.php?id=1838
- fix dc_age return value
- speed up curse reporting a little
2015-07-03 17:36:37 +02:00
Enno Rehling
3ba2b3d4d7
indentation fixes (tab->spaces)
2015-06-26 14:31:21 +02:00
Enno Rehling
9b7a4e813b
functional test for forced leave configuration.
...
functional test for forced leave after combat.
functional test for MAKE TEMP.
error handling for Lua function building.create().
reduce some errors to warnings.
initialize race.battle_flags correctly (when not created through XML).
re-initialize processor in case config has changed.
handle missing translation of combat status, with error message.
2015-06-19 13:17:01 +02:00
Enno Rehling
a5f056b4b6
re-enable an assertion that was commented out.
...
fix a size_t range warning, change error code for wrptr().
2015-05-24 14:01:37 +02:00
Enno Rehling
0ea0936156
Use default locale when missing a translation, only warn once.
...
https://bugs.eressea.de/view.php?id=2103
remove locale::fallback, it was never set anyhow (also, we have no good fallbacks).
2015-05-22 14:14:02 +02:00
Enno Rehling
72e041dd32
fix missing include
2015-05-18 09:04:05 +02:00
Enno Rehling
8e5fc28bfc
refactoring more of goodies.h into strings.h
2015-05-18 08:59:38 +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
c4d1482250
signed/unsigned comparisons (VC warning only)
2015-05-15 20:56:43 +02:00
Enno Rehling
9d7a9cbe6a
add missing new header
2015-05-15 20:47:27 +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
1dc516ab50
reduce warning level on oldterrain() log, warn from caller (json_report) instead.
2015-05-15 07:59:06 +02:00
Enno Rehling
d2af6a2f88
fix -Wconversion in spells.c
2015-05-15 07:07:21 +02:00
Enno Rehling
fe29e29c31
fix -Wconversion for move.c
2015-05-15 06:43:47 +02: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
f9bced467d
fix a crash in rename_cmd
2015-02-08 10:33:45 +01:00
Enno Rehling
5e0c934c6f
indentation fixes for this new file
2015-01-30 22:30:11 +01:00
Enno Rehling
df5ab02689
Merge branch 'peasantgrowth_acceleration' of https://github.com/stm2/server into stm2-peasantgrowth_acceleration
2015-01-30 22:11:10 +01:00
Enno Rehling
c54cbfd472
fix copyright notice
2015-01-30 22:10:29 +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
Steffen Mecke
a97b211e70
bit of testing, code improvements, formatting
2015-01-30 18:25:56 +01:00
Enno Rehling
9f542e081b
fix last commit, broke the gcc travis build.
2015-01-15 17:17:32 +01:00
Enno Rehling
490782e750
add some simple tests for messages, prior to any refactorings.
2015-01-15 16:40:19 +01:00
Steffen Mecke
51d52aaf7f
implementing a much faster version of peasant growth calculation
2015-01-15 02:53:15 +01:00
Enno Rehling
838cf3d938
try to allow visual studio to build with all warnings (/WAll) enabled.
2015-01-12 22:53:21 +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
5e10bc4093
wait, no. tests did not pass when that change was made (for good reason, I assume).
2014-12-31 13:19:44 +01:00
Enno Rehling
f524f23cd4
superfluous semicolons and other small stuff.
...
missing strings are an error, not a warning.
2014-12-31 13:17:54 +01:00
Enno Rehling
e8ad542430
more thorough cleanup of tokens.
2014-12-31 01:50:54 +01:00
Enno Rehling
e9c3a00f7d
it sucks that get_translations sometimes returns tokens, and sometimes critbit_trees. How is anyone supposed to free that correctly?
2014-12-31 01:29:10 +01:00
Enno Rehling
2fbb04140c
at_deprecated was causing a small memory leak.
2014-12-31 01:17:49 +01:00
Enno Rehling
89ce04a6c3
this obviously cannot be const, then. fix the build.
2014-12-30 00:02:27 +01:00
Enno Rehling
077a0aeeef
plug some new memory leaks
2014-12-30 00:00:57 +01:00