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
Enno Rehling
eac4ef7ddc
reduce conversion warning to float only
2015-05-15 13:32:22 +02:00
Enno Rehling
9c7fe1d7cc
fix gcc compilation and missing argument
2015-05-13 13:12:46 +02:00
Enno Rehling
06ff88e783
use filestream for report_template, too.
2015-05-12 20:51:17 -07:00
Enno Rehling
53a452e4ba
more conversions to filestream
2015-05-12 20:08:34 -07:00
Enno Rehling
e048b82ad2
very messy first steps towards making report_plaintext use filestream instead of FILE (lots of hacks)
2015-05-12 19:41:43 -07:00
Enno Rehling
83e610ee03
Fixing bug 1802 again, CR contains no Monster names.
2015-02-11 07:57:38 +01:00
Enno Rehling
9a395127ac
Merge branch 'nr_localization_fix' of https://github.com/stm2/server into stm2-nr_localization_fix
...
Conflicts:
src/report.c
2015-02-01 12:24:19 +01:00
Enno Rehling
03cddee6b7
Small plural/singular fix in German message.
2015-02-01 10:39:36 +01:00
Enno Rehling
c54cbfd472
fix copyright notice
2015-01-30 22:10:29 +01:00
Steffen Mecke
5e4ea5a145
fixed formatting errors
2015-01-30 20:43:40 +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
039ee159cb
a bunch of messages in the NR where not localized
2015-01-14 16:17:21 +01:00
Enno Rehling
3d4fefcf7c
Some additional TODO comments for things I want to tackle eventually. #comment-only
2015-01-10 17:05:10 +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
b3bec13051
report the unit limit in NR and CR.
...
this implements https://bugs.eressea.de/view.php?id=2055
2014-12-19 19:57:24 +01:00
Enno Rehling
9b56ccf53c
cleaning up some alliance code, killing bitrot from WDW.
2014-12-09 14:14:35 +01:00
Enno Rehling
0fead39b41
added a function that sets a monster's name to NULL if it is the name of its race.
...
deprecate old rc_name function (renamed to rc_name_s) because it used a static return string.
2014-12-09 07:20:36 +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
Enno Rehling
a28cbc647a
loot refactoring and a small armor/shield fix.
2014-11-09 14:39:48 +01:00
Enno Rehling
81bfb598d0
refactoring modules, cleaning out the config.c kitchen sink.
...
- cansee_* rules to laws.c
- translations to language.c
- stealth to attributes/,
- rename build.h -> buildno.h
2014-11-01 12:09:56 +01:00
Enno Rehling
cf1f3972b6
cleaning out config.c, there is too much code in there.
...
rules should be in their own modules. here:
upkeep is a concept all by itself, should have its own tests, etc.
movement code should be in move.c.
cleaning up some superfluous include directives.
2014-08-31 16:50:37 +02:00
Enno Rehling
932a615837
refactoring: special directions into their own file (vortex.c).
...
moving spells.c out of spells.
figured that movewhere should be in move.c
2014-08-27 21:30:24 +02:00
Enno Rehling
a9a0455207
reorganized directory structure.
...
flattening the directory structure, moving some modules to the src/ directory.
making stealth a separate file, under test.
more tests for some stuff.
2014-08-27 06:40:35 +02:00
Enno Rehling
2211111b29
Remove a German-only piece of text, to reduce the footprint of fleets in the report a little.
...
Fix English score message in NR.
Small fixes to meet Visual Studio warning level 4.
2014-08-25 00:45:32 +02:00
Enno Rehling
a3037950ff
fix a bug in the escape_string function.
...
remove static return variable from escape_string.
add test coverage.
2014-08-24 23:58:31 +02:00
Enno Rehling
4c00777553
make race::_name a string, not an array of strings. add a test for rc_name.
2014-08-24 23:58:29 +02:00
Enno Rehling
8f09ab73d9
fix display of alliance status, some English translation hiccups.
2014-08-17 00:14:50 +02:00
Enno Rehling
41d42fa248
localization of alliance status "ALL".
...
fix for https://bugs.eressea.de/view.php?id=1993
2014-08-16 03:07:37 +02:00
Enno Rehling
2bec7e2bbe
save game id in the data file, not name of XML file
2014-07-23 11:54:51 +02:00
Enno Rehling
c3dfbdea18
eliminate new_race array in favor of a function (TODO: make it fast)
2014-06-29 18:10:02 -07:00
Enno Rehling
d0e2ad542a
tests for basic movement
2014-06-25 14:30:24 -07:00
Enno Rehling
d581737744
optimization: caching resource types in get_resourcetype.
...
eliminate some it_find calls.
eliminate static variables, they make testing hard.
2014-06-24 07:42:45 -07:00
Enno Rehling
73da14e305
getting rid of the olditemtypes[] array
...
reduce use of statics
reduce use of item_t enum
2014-06-23 07:28:10 -07:00
Enno Rehling
2c831230a0
Added a test for expensive skills.
...
When resetting the game rules, make sure basic resources (money, hp, person) are initialized.
2014-06-22 07:55:14 -07:00
Enno Rehling
bff25f3c51
move skill_t into a separate file, give it unit tests.
...
name functions the same as we did for keyword/direction earlier.
to do: json configuration and lua test.
2014-06-20 23:59:04 -07:00
Enno Rehling
0675c50c7f
keyword lookup macro
2014-06-16 23:05:39 -07:00
Enno Rehling
d503937999
working on making json config understand ships and buildings.
...
new tests in progress.
remove giveitem.c attribute, the name clashed with a trigger,
and it was only part of an arena that is gone from the game, I think.
2014-06-12 22:14:07 -07:00
Enno Rehling
3dda5d3033
apply USE_LIBXML consistently, so tests can be built without libxml2
2014-06-09 20:51:29 -07:00
Enno Rehling
3c4b6b9dd4
rename message.[hc] to messages.[hc] in kernel because of naming conflict with util/
...
begin json config files (WIP)
2014-06-09 09:56:49 -07:00
Enno Rehling
535a9e6e53
fix number of units in the report header
2014-04-26 12:24:51 -07:00
Enno Rehling
70cee3c6e5
remove any dependency on stat.
2014-03-15 20:41:58 -07:00
Enno Rehling
9fc926864e
Fixes for Visual C++
...
snprintf and strncasecmp are not that.
_access needs to be fixed on gcc, next.
2014-03-15 12:35:20 -07:00
Enno Rehling
03c247c788
I am killing the core/ directory.
...
Lots of files are moving to a new location in src/
Some intersting CMake changes.
2014-02-18 05:45:00 +01:00