Enno Rehling
88626fb163
optimization: select_fighters.
...
use select_fighters with callback to reduce the number of selected units for (most) combat spells.
2017-05-21 12:26:04 +02:00
Enno Rehling
58d9aa58a0
BUG 2326: Untote Helden fehlen in der Kampfübersicht
...
https://bugs.eressea.de/view.php?id=2326
2017-05-21 11:14:16 +02:00
Enno Rehling
fa7a3e246b
eliminate spell->id.
...
clean up some spell functions used by more than one spell.
2017-05-01 17:04:28 +02:00
Enno Rehling
c6a8a76e31
strip skillmod down to the essentials.
2017-04-02 20:17:39 +02:00
Enno Rehling
cdf13c9fec
stop using test_create_world, use test_setup.
2017-03-11 14:22:21 +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
a553b2258a
remove code for shadowcall, too
2017-02-18 18:25:58 +01:00
Enno Rehling
774fa12a5a
continued work for MSVC compilation
2017-01-26 18:05:25 +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
a4badc0a75
remove quicklist shim, use selist everywhere
2017-01-26 17:41:21 +01:00
Enno Rehling
e52cf75c59
remove autoconf.h from platform.h, fix lots of includes
2016-11-25 20:15:11 +01:00
Enno Rehling
7d874f1606
fix clang builds
2016-11-18 13:24:50 +01:00
Enno Rehling
6c9e1fb345
more config.h removal.
...
freset/fset/fval must die!
2016-11-17 17:06:31 +01:00
Enno Rehling
d1d1bee8f6
missing struct declarations in curse.h
...
remove config.h from spells and curses.
2016-11-17 11:34:35 +01:00
Enno Rehling
11b122048b
reduce dependency on save.h
...
moving a_write* functions to attrib.h, which was most of the reason everyone and their mom include save.h
2016-11-13 19:40:38 +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
c352ab9f8e
move game-version information fom version.h to gamedata.h
2016-09-10 17:21:17 +02:00
Enno Rehling
1a1ec3f363
cleanup: remove static curse_type variables.
2016-08-29 20:12:31 +01:00
Enno Rehling
40d9ebfa94
reduce code duplication: itemcloak code was copied between NR and CR.
2016-08-29 19:37:47 +01:00
Enno Rehling
75f2be75d8
remove code for alp (non-functional)
...
remove code for removecurse trigger (only used by alp)
2016-03-25 21:18:57 +01:00
Enno Rehling
be0cc93917
this test is poorly written, and a trap
2016-03-10 23:05:24 +01:00
Enno Rehling
c21d5290ef
memory leak: castorders
...
when you test_create_castorder, you must free_castorder
2016-03-10 22:33:53 +01:00
Enno Rehling
8a9d617aa3
read_referernce takes a gamedata object.
...
with all the trimmings that requires,
this is for github issue $479
2016-02-24 11:53:22 +01:00
Enno Rehling
73a6b96bc7
remove global.data_version from border.read
...
remove global.encoding
github issue #479
2016-02-24 11:44:19 +01:00
Enno Rehling
7f6ced99b9
attrib.read gets a gamedata object (remove dependency on global.data_version)
2016-02-24 11:44:18 +01:00
Enno Rehling
0189111876
update key attribute api
...
prepare to replace at_key. do not return the internals. add basic test.
2016-02-09 06:43:19 +01:00
Enno Rehling
5187788f3c
pass the parent of an attribute into a_age and attrib_type::age
2015-12-16 22:18:44 +01:00
Enno Rehling
c5965fcd59
CID 22455 Logically dead code
...
github issue #359
2015-11-11 16:00:07 +01:00
Enno Rehling
9f94979b0d
Merge branch 'bug/#2144' of https://github.com/TurnerSE/server into TurnerSE-bug/#2144
2015-11-07 18:53:19 +01:00
Philipp Dreher
6f3ea9b85a
co is now first checked for validity before it is used for var-initialisation
2015-11-07 18:52:30 +01:00
Enno Rehling
e8a42b20dd
don't use test_create_world
2015-11-07 18:47:55 +01:00
Enno Rehling
7ef18b1533
call cleanup
2015-11-07 18:45:41 +01:00
Enno Rehling
242efafd61
Fehlende Initializierung, github #375
2015-11-07 18:21:48 +01:00
Enno Rehling
4c861aa40d
CID 22496 Infinite loop
...
github issue #356
this is only relevant to old data files, it appears.
2015-11-05 11:17:31 +01:00
Enno Rehling
dedbd67d07
re-apply fix for CID 22551: dereference before null check (merge conflict)
2015-11-04 09:36:09 +01:00
Enno Rehling
ae28cbd7c3
Merge branch 'enhancement/airship_refactoring' of https://github.com/TurnerSE/server into TurnerSE-enhancement/airship_refactoring
...
Conflicts:
src/spells/shipcurse.c
2015-11-03 13:02:42 +01:00
Philipp Dreher
c2a8c32be0
forgot fwd-declaration of structs...
2015-11-02 18:08:35 +01:00
Philipp Dreher
30dce18697
small formal corrections
2015-11-02 17:58:14 +01:00
Philipp Dreher
96ccb046ab
added test-suite for flyingship.c
...
some general testing of the spells functionality for future maintenance
purposes
2015-11-02 17:54:23 +01:00
Philipp Dreher
f550431118
small documentation correction
2015-11-02 15:59:29 +01:00
Philipp Dreher
8200fdb6c2
moved files for flyingship to subdir "spells"
2015-11-02 15:40:26 +01:00
Philipp Dreher
abd6be475f
that just slipped in the commit by accident...
2015-11-02 13:55:28 +01:00
Philipp Dreher
fe0d038bf3
moved more related functionality from shipcurse.c to flyingship.c
2015-11-02 13:39:06 +01:00
Philipp Dreher
6e7510b7e9
moved flying ship functionality from spells.c and shipcurse.c to flyingship.c
2015-11-02 00:32:56 +01:00
Enno Rehling
833a1e70be
CID 26257: Null pointer dereferences (NULL_RETURNS)
...
this test should never fire, but it shuts up coverity
2015-10-29 16:40:18 +01:00
Enno Rehling
c7aa8c89b1
coverity scan CID 22551: dereference before null check
2015-10-29 09:22:00 +01:00
Enno Rehling
0f32630590
leak: release message in test
2015-10-14 20:22:51 +02:00
Enno Rehling
0facb386a8
memory leaks: call test_cleanup, free strlist, free message
2015-10-13 22:21:05 +02:00
Enno Rehling
71c4cb53c0
add missing guard.h include everywhere, remove duplicate prototypes from config.h
2015-09-12 23:41:37 +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