Enno Rehling
d0577a5d6a
cppcheck style warnings: reduce variable scope
2019-03-03 09:40:22 +01:00
Enno Rehling
af91459fb1
add some variety to familiar selection.
...
effskill: use NULL, not 0 for pointer arguments.
2019-02-02 20:38:02 +01:00
Enno Rehling
3e54d307df
replace bsdstring in bufunit
2018-11-24 12:26:52 +01:00
Enno Rehling
4a66b558c5
WIP: refactor struct sc_mage (make it private).
...
tests are failing and/or slow.
2018-11-18 21:47:14 +01:00
Enno Rehling
d3a37179ef
add param.[hc], at last.
2018-09-29 19:32:39 +02:00
Enno Rehling
a373807189
move attrib and event modules to kernel
2018-09-29 11:37:17 +02:00
Enno Rehling
2e5e8347ac
Bug 2489: Kill the SIEGE command, forever.
2018-09-09 21:01:10 +02:00
Enno Rehling
e89fe69d58
simplicate the sink_ship function, do not rescue units.
2018-08-01 11:55:57 +02:00
Enno Rehling
ad0464ab50
BUG 2168: call sink_ship for ships that take too much damage.
2018-08-01 10:04:12 +02:00
Enno Rehling
120b03d2f5
Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2018-02-25 18:14:48 +01:00
Enno Rehling
a8140f1dc9
rename strlcpy->str_strlcpy, etc.
2017-12-30 19:49:21 +01:00
Enno Rehling
c8ee0db02d
stop using MIN and MAX
2017-12-30 08:58:50 +01:00
Enno Rehling
f98eab56c4
platform.h is only for WIN32 now.
...
replace MIN and MAX macros, they are BAD.
2017-12-29 06:13:28 +01:00
Enno Rehling
79aecf21b5
Merge branch 'develop'
2017-10-18 19:40:00 +02:00
Enno Rehling
e2c7b2c711
merge with master, which was far behind
2017-10-15 20:32:19 +02:00
Enno Rehling
333ef06fef
hackish optimization for STUDY orders
2017-10-13 19:33:29 +02:00
Enno Rehling
2b54605080
remove order de-duplication for short and study orders.
2017-10-13 19:33:27 +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