Enno Rehling
27f9490ec1
Merge pull request #661 from ennorehling/develop
...
pedantic gcc compilation
2017-02-18 22:07:12 +01:00
Enno Rehling
b8302b1f15
Merge branch 'develop' of github.com:eressea/server into develop
2017-02-18 22:03:34 +01:00
Enno Rehling
b744b6d601
Merge branch 'master' into develop
2017-02-18 22:02:58 +01:00
Enno Rehling
5796f60f16
spells will always resist magic
2017-02-18 22:00:48 +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
daa7554361
remove race.precombatspell
2017-02-18 18:14:18 +01:00
Enno Rehling
e51742da90
use rc_maxaura wrapper everywhere.
2017-02-03 19:50:48 +01:00
Enno Rehling
7750297dc2
express race.magres as percentage, not probability (double->int)
2017-02-03 10:57:32 +01:00
Enno Rehling
456d1bd196
spellbooks should not use spellref, it's unnecessary.
2017-02-02 20:08:04 +01:00
Enno Rehling
7e69149c40
WIP: spellref everywhere
2017-02-02 16:52:32 +01:00
Enno Rehling
6d15767a18
create a spellref structure.
...
use this when referring to spells that may not (yet) exist.
use it for race::precombatspell (rare use case).
2017-01-28 19:42:20 +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
7f9313f1a7
static analysis warnings.
...
PVS-Studio warnings reduced or suppressed.
2016-11-23 18:56:40 +01:00
Enno Rehling
bc5e744347
i2b is a bullshit macro.
2016-11-17 21:23:49 +01:00
Enno Rehling
ce4a3c14b3
convert from atoi to atoip.
...
most numbers in commands cannot be negative.
2016-11-14 22:27:44 +01:00
Enno Rehling
2b07ae810c
kil xmlreport files.
...
remove unnecessary includes.
2016-11-14 01:27:59 +01:00
Enno Rehling
03d90c5680
remove BOM from UTF-8 files, replace Umlauts
2016-11-01 17:25:52 +01:00
Enno Rehling
8f1a1fc8c3
tighten up some lookups.
2016-10-03 20:27:36 +02:00
Enno Rehling
423e293745
some more config lookup caching
2016-09-23 20:39:08 +02:00
Enno Rehling
2c0f0bfc1e
reduce get_race calls by a few more
2016-09-22 15:51:11 +02:00
Enno Rehling
c352ab9f8e
move game-version information fom version.h to gamedata.h
2016-09-10 17:21:17 +02:00
Enno Rehling
a5ce809f41
fix memory leak in umlaut.c with reference counting (sad).
2016-09-06 19:57:07 +01:00
Enno Rehling
3d5c7ba8fb
refactoring: move produceexp from unit.c to study.c
2016-03-09 14:50:54 +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
2e41c4972c
read_spellbook, use gamedata.version
...
github issue #479
2016-02-24 11:48:46 +01:00
Enno Rehling
3e584245c0
attrib.read gets a gamedata object
...
stop using global.data_version
for 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
a94a238af0
addparam_region fix: all regions in spell parameters should be in the "normal" plane.
2016-01-29 20:04:05 +01:00
Enno Rehling
91f894b290
teleport.c is the astral space implementation, and it is not one of the core concepts, so move it out of the kernel/ directory
2016-01-28 12:25:16 +01:00
Enno Rehling
2f70054d2f
braineaters outside of astral sapce lose 50% of their innate magic resistance.
2016-01-28 10:58:28 +01:00
Enno Rehling
74d8b53ba8
fix a TODO, reduce size of icastle_data
2015-12-17 12:59:12 +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
1a9e3db423
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
2015-12-06 20:51:14 +01:00
Enno Rehling
9b7d4adda5
https://bugs.eressea.de/view.php?id=2173#c6397
...
by request: magic resistance never higher than 90%, so highly skilled monsters cannot become completely invincible to magic.
2015-12-06 20:48:22 +01:00
Enno Rehling
64b84481b2
refactoring: move parsing and allies code out of config.c
2015-11-24 18:52:09 +01:00
Enno Rehling
48c75466b6
kill static caches for floating-point variables
2015-11-22 17:32:35 +01:00
Enno Rehling
2e392b4d7c
eliminate even more static variable caches
2015-11-22 16:14:27 +01:00
Enno Rehling
a4cb5e2906
replace all get_param_* for global.parameters with config_get_*
2015-11-22 10:44:46 +01:00
Enno Rehling
66e43caf9d
CID 32303 Unchecked return value
...
appeasing coverity
2015-11-09 20:03:38 +01:00
Enno Rehling
ea8721367a
test and fix shock trigger.
...
https://bugs.eressea.de/view.php?id=2154
2015-11-09 19:43:51 +01:00
Enno Rehling
fed660987a
CID 22519 et al (resource leaks)
...
make the failure case for get_spellbook a little slower, but make static analysis happy.
2015-11-09 19:16:20 +01:00
Enno Rehling
dcc819491f
make it easier for coverity to understand this code (there are no resource leaks)
2015-11-05 12:47:34 +01:00
Enno Rehling
0a5bd9d356
22480 Dereference after null check
2015-11-04 14:19:43 +01:00
Enno Rehling
cc89e9c9da
fix crash when rules do not define a unicorn item
2015-11-03 17:33:44 +01:00
Enno Rehling
24ff4c301d
refactor: separate building_is_active from inside_building
2015-11-02 14:18:50 +01:00
Enno Rehling
6113bc2144
CID 26254: Incorrect expression (DIVIDE_BY_ZERO)
...
magic should never be zero, but coverity doesn't know that.
2015-10-29 16:46:43 +01:00
Enno Rehling
2f35246f8c
memory leak: when freeing factions, also free their spellbooks
2015-10-13 21:47:45 +02:00
Enno Rehling
936c201d0b
Merge pull request #312 from eressea/master
...
pull latest changes from master into develop
2015-10-11 16:47:29 +02:00