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
b27e1a01aa
continued work for MSVC compilation
2017-01-10 18:07:36 +01:00
Enno Rehling
8b7dae6977
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-10 16:31:05 +01:00
Enno Rehling
7f9313f1a7
static analysis warnings.
...
PVS-Studio warnings reduced or suppressed.
2016-11-23 18:56:40 +01:00
Enno Rehling
eabaf8bebb
fix last commit.
2016-11-19 16:27:37 +01:00
Enno Rehling
531da88b2a
squash some static analysis warnings.
2016-11-19 15:19:23 +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
1116afed2b
merge conflict resolve
2016-10-29 19:19:22 +02:00
Enno Rehling
5bb2dbfd87
move is_guarded from move.h to guard.h
...
Conflicts:
src/move.c
2016-10-29 19:15:49 +02:00
Enno Rehling
71fa3600f7
recalculate [first,last) after lighthouses aand trvelthru
2016-09-13 09:09:35 +02:00
Enno Rehling
86ef225ccb
add some more local caching.
2016-09-11 12:48:00 +02:00
Enno Rehling
40dbe2b0cb
delete old healing effects on read
...
remove obsolete effect-handling from battle.c
2016-06-17 21:49:31 +02:00
Enno Rehling
3d5c7ba8fb
refactoring: move produceexp from unit.c to study.c
2016-03-09 14:50:54 +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
5187788f3c
pass the parent of an attribute into a_age and attrib_type::age
2015-12-16 22:18:44 +01:00
Steffen Mecke
1f4c521ac8
encapsulate r->land->peasants, money, horses, herbs, morale
2015-12-08 17:57:23 +01:00
Enno Rehling
7bbf11c6b6
eliminate more static cached configuration values
2015-11-22 15:14:50 +01:00
Enno Rehling
17068af332
unusual potion delay attribute can use a potion in another region? unclear what this code does, but fixing my bad assumption.
2015-11-22 14:36:05 +01:00
Enno Rehling
c6bac1e49e
refactoring: sprout methods for all special-action potions
...
remove static caches for WOL configuration
2015-11-22 14:28:15 +01:00
Enno Rehling
b05fe9316a
introducing config_set and config_get so we don't have to refer to globals.parameters everywhere
2015-11-22 10:33:31 +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
6889cb0c80
remove superfluous argument from herbsearch
...
use effskill, not eff_skill
2015-08-27 14:46:08 +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
01877f5169
cleanup, fix a TODO, eliminate dead code.
2014-12-10 09:39:11 +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
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