Enno Rehling
e2c7b2c711
merge with master, which was far behind
2017-10-15 20:32:19 +02:00
Enno Rehling
1b53128e1a
BUG 2366: Fix cansee for seen_spell regions.
2017-10-10 20:24:20 +02:00
Enno Rehling
f594a908df
deprecate old get_mage implementation.
...
fix test_familiar_equip with new get_mage.
2017-10-06 21:53:07 +02:00
Enno Rehling
091a8de6b6
Merge branch 'master' into develop
...
Conflicts:
src/kernel/race.c
src/spy.c
2017-04-22 18:38:34 +02:00
Enno Rehling
e530543022
demon stealth: cloak as other race.
...
added a Lua test.
get_race oob fix (potential crash).
2017-04-22 18:33:47 +02:00
Enno Rehling
9fcab4ccb8
do not hard-code list of allowed races for demons.
2017-04-17 20:18:37 +02:00
Enno Rehling
635ec6d6c6
Fix a crash in TARNE <race>
...
this was complicated to test, and I had to rewrite how races and their names are registered by test_create_locale.
2017-04-17 20:11:44 +02:00
Enno Rehling
39ec03b2af
coverity CID 164473
...
remove logically dead code.
2017-03-12 12:02:29 +01:00
Enno Rehling
fc8e6dc6de
TARNE PARTEI creport test
2017-03-01 18:11:46 +01:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
644a6019a6
do not call isdigit with a negative value.
...
http://bugs.eressea.de/view.php?id=1987#c6941
2017-02-03 21:19:39 +01:00
Enno Rehling
d94cde67a4
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-26 18:03:48 +01:00
Enno Rehling
f5419a7f45
remove superfluous quicklist includes.
2017-01-06 22:47:50 +01:00
Enno Rehling
afac66e213
fix bug 2261: bit manipulation error in STEALTH FACTION.
...
https://bugs.eressea.de/view.php?id=2261
2016-12-03 23:38:53 +01:00
Enno Rehling
91adf420bc
strncat error V645
2016-11-23 19:18:54 +01:00
Enno Rehling
09f22ba0bc
move findrace into race.c
2016-11-22 12:32:28 +01:00
Enno Rehling
467ffe2db0
include guard.h directly, not through laws.h
2016-11-01 22:11:10 +01:00
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
3d5c7ba8fb
refactoring: move produceexp from unit.c to study.c
2016-03-09 14:50:54 +01:00
Enno Rehling
ee02721c21
fix and tests for otherfaction attributes in E2
...
https://bugs.eressea.de/view.php?id=2152
2015-11-09 13:36:52 +01:00
Enno Rehling
4da658584c
coverity scan CID 22511: dereference null return value
2015-10-29 09:20:58 +01:00
Enno Rehling
e3572ef14e
eliminate deprecated call
2015-10-27 12:40:04 +01:00
Enno Rehling
e23a7fc87d
deprecate report_kampfstatus and implement a replacement function.
2015-10-27 12:40:04 +01: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
afbc4c816b
refactoring ship speed, extract total skills of sailors into a function.
2015-08-07 12:43:18 +02:00
Enno Rehling
b3a8a95a24
cherry-picking ship tests from range_max code
2015-08-07 11:48:46 +02:00
Enno Rehling
d7e5876c62
fix build, missing limits.h include
2015-07-07 09:44:24 +02:00
Enno Rehling
1e669472a6
add a test and fix potential crashes in SABOTAGE command.
...
sometimes even a simple test will uncover a ton of small errors.
2015-07-07 09:29:43 +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
Steffen Mecke
79d2c76c3f
refining spy tests
2015-05-04 14:30:59 +02:00
Steffen Mecke
e28222c5be
fix missing kampfstatus
2015-05-04 14:30:59 +02:00
Steffen Mecke
2cc8c1f871
trying to solve spy message bug #1604
...
Conflicts:
src/kernel/CMakeLists.txt
2015-05-04 14:30:59 +02: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
Enno Rehling
9453aff7f5
fix running game-specific tests for E3, add them to the test suite.
2014-12-31 21:07:42 +01:00
Enno Rehling
98994f233d
remove the deprecated getunit function.
...
fix the build, missing return value from give_control_cmd.
2014-12-12 21:06:47 +01:00
Enno Rehling
481275aef1
refactor: eliminate the getunitpeasants global variable.
...
bugfix: it was possible to uncover stealth units with GIVE CONTROL.
2014-12-12 20:53:39 +01:00
Enno Rehling
1af315ebf2
move magic out of kernel, into src.
...
clean up/remove a ton of includes, especially of types.h (include in header if you need it, not in every .c file).
2014-11-01 12:57:01 +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
403c1ad6a9
fix errors and warnings that clang reports.
2014-10-14 22:57:02 +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
e87b1cf372
an experiment to have deterministic sort order for known factions in the report.
2014-08-25 00:06:33 +02:00
Enno Rehling
808f343e34
make getstrtoken() return null at EOL, kill init_tokens.
...
init_order all the things!
added a bunch of new assertions to cover for oversights.
added some new tests for order parsing.
2014-08-23 09:17:58 +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
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
125fd519a8
rename test files.
...
add tests for keyword.c, incomplete.
2014-06-16 08:01:59 -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
0ae8737062
rename MIN/MAX to _min/_max
2014-03-16 05:03:17 +01:00