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
Enno Rehling
4c32fe19ee
eliminate some dead code that was still marked with TODO.
2015-08-21 10:54:09 +02:00
Enno Rehling
dfb0bcaccf
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
src/kernel/save.c
src/laws.c
2015-08-20 15:49:36 +02:00
Enno Rehling
ff38d8bf4c
I don't think it's good to call update_spells before the turn.
...
one should only have the spells that are in the previous week's report.
a few comments wouldn't hurt.
2015-08-20 12:12:17 +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
1042c94fd9
quickly fix gcc conversion warnings. lots of DRY.
2015-08-17 20:17:02 +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
b3a8a95a24
cherry-picking ship tests from range_max code
2015-08-07 11:48:46 +02:00
Enno Rehling
b8a2b9d0b7
Merge pull request #7 from ennorehling/feature/bug-2101-study-teach-testing
...
bug 2101: increase max printed length of orders
2015-08-06 17:05:32 +02:00
Enno Rehling
8dc4e93e90
fix missing units from CR, add a test, partially convert from FILE* to stream
2015-08-05 14:45:46 +02:00
Enno Rehling
8efc874952
backfill missing tests for ally_cmd
2015-08-05 12:19:17 +02:00
Enno Rehling
928b9966d0
fix broken test (select DESTROY over MOVE), start writing unit tests for update_long_order
2015-08-04 23:04:00 +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
2288b8fb27
Merge remote-tracking branch 'upstream/master' into develop
...
Conflicts:
.travis.yml
s/build
s/cmake-init
s/runtests
src/buildno.h
src/kernel/config.c
src/kernel/save.c
src/kernel/unit.c
src/laws.c
src/move.c
2015-08-03 19:43:26 +02:00
Enno Rehling
17f15b69ee
fix some of the unicode replacement symbol bullshit in comments
2015-08-02 21:37:12 +02:00
Enno Rehling
27835dc4e1
unit tests for STUDY and TEACH commands.
2015-07-09 13:24:21 +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
4e67c4ac3f
do not remove new players for missing their first turn.
2015-07-05 15:24:46 +02:00
Enno Rehling
6df1e3eeb0
Merge pull request #250 from badgerman/feature/newplayer-fixes
...
some fixes for new players
2015-07-05 15:21:54 +02:00
Enno Rehling
ae8c448698
do not remove new players for missing their first turn.
2015-07-05 14:07:59 +02:00
Enno Rehling
979f3460d6
Bug 1805: re-enable NMR warnings
...
https://bugs.eressea.de/view.php?id=1805
move warnings to the top of the list of errors in the NR
2015-07-03 15:31:57 +02:00
Enno Rehling
a2376290d8
Bug 1950: fleeing units can guard the same turn.
...
checking for UFL_FLEEING in can_start_guarding should make that impossible now.
https://bugs.eressea.de/view.php?id=1950
2015-07-02 17:52:22 +02:00
Enno Rehling
31ca0ce052
fix a parser crash in the USE command.
2015-07-02 13:42:15 +02:00
Enno Rehling
3ba2b3d4d7
indentation fixes (tab->spaces)
2015-06-26 14:31:21 +02:00
Enno Rehling
659aa6c973
after combat, eject enemies only
2015-06-20 14:28:16 +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
e7bffb7533
implement post-combat forced leave from ship/building
2015-06-19 07:53:11 +02:00
Enno Rehling
59400b1e27
Merge branch 'release-3-5' into develop
...
Conflicts:
s/runtests
src/buildno.h
2015-05-24 14:10:42 +02:00
Enno Rehling
6f50027088
use_item can return positive values now
2015-05-24 07:43:11 +02:00
Enno Rehling
e99db198eb
bugfix use_item (use_skillpotion did not use pool).
...
from here on, all use_* functions return the number of items used, and
use_item handles removing them from the unit (or the pool).
2015-05-24 07:17:23 +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
d0f8825240
use the syntax_error function where appropriate.
...
fix bug w. releasing message too soon.
2015-05-18 11:34:52 +02:00
Enno Rehling
820cdccf32
prettier syntax: C does not require taking an address (&) of a function.
2015-05-18 08:42:35 +02:00
Enno Rehling
dd8449783a
converting float->double in a lot of the code to prevent -Wconversion messages
2015-05-15 19:08:44 +02:00
Enno Rehling
7f1ee527d9
Merge pull request #186 from badgerman/develop
...
newplayer script updates, small gmtool fixes
2015-05-10 14:05:39 -07:00
Steffen Mecke
2d27442681
apply possible number of racial attacks consequently
2015-05-08 13:02:54 +02:00