Enno Rehling
ba14fab3a3
macros should have uppercase names.
2018-02-03 14:49:35 +01:00
Enno Rehling
3d69f4e372
start removing dependencies on potion_type.
...
use item_type where we can. does not compile, is WIP.
2018-01-14 17:40:48 +01:00
Enno Rehling
01dd489b7a
BUG 2403: endless loop (variable rename gone wrong).
2017-12-31 16:36:59 +01:00
Enno Rehling
a8140f1dc9
rename strlcpy->str_strlcpy, etc.
2017-12-30 19:49:21 +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
5b1d27542a
reduce dependence on platform.h.
...
gradually stop using MAX and MIN (mistakes were made).
2017-12-28 18:29:40 +01:00
Enno Rehling
5dabd19504
add tests for visible_unit, remove unused cansee_ex
2017-12-23 17:49:30 +01:00
Enno Rehling
6bd4e543ba
BUG 2395: lighthouses were seeing units they should not.
...
DRY!
2017-12-23 17:37:24 +01:00
Enno Rehling
cba452786f
BUG 2396: insect recruit messages fixed, and tests added.
2017-12-22 11:15:17 +01:00
Enno Rehling
05425b5101
pull economy requests into header, rename the struct.
2017-12-04 19:20:48 +01:00
Enno Rehling
290a07e763
Merge branch 'develop'
2017-11-15 20:39:20 +01:00
Steffen Mecke
0aa5a64c63
allow empty faction email
2017-11-15 12:12:42 +01:00
Enno Rehling
79aecf21b5
Merge branch 'develop'
2017-10-18 19:40:00 +02:00
Enno Rehling
b337373bc9
shorten some names, too many messages with the same prefix are inefficient.
2017-10-16 20:38:52 +02:00
Enno Rehling
e2c7b2c711
merge with master, which was far behind
2017-10-15 20:32:19 +02:00
Enno Rehling
34cd692c2d
remove the locale from orders.
2017-10-13 19:33:28 +02:00
Enno Rehling
1b53128e1a
BUG 2366: Fix cansee for seen_spell regions.
2017-10-10 20:24:20 +02:00
Enno Rehling
f00ff2d16e
BUG 2368: additional space
2017-10-06 04:14:07 +02:00
Enno Rehling
423fe65377
move region display to land_region struct, oceans do not have descriptions.
2017-09-16 07:58:57 +02:00
Enno Rehling
f4df6bd9db
kill ATF_CURSE flag, compare to at_curse directly.
2017-08-25 21:11:01 +02:00
Enno Rehling
2dd159841e
Merge branch 'master' into develop
2017-08-24 16:47:24 +02:00
Enno Rehling
fc4bde47f6
kill the old curses enum and oldcursename.
2017-08-21 20:48:00 +02:00
Enno Rehling
7985ebe511
replace ct_find calls with constants.
...
reorder a lot of includes.
2017-08-21 20:18:19 +02:00
Enno Rehling
c99e92db20
kill curse cache logic, it was a bad idea.
...
ct_find is almost never what we want to do.
2017-08-21 19:43:35 +02:00
Enno Rehling
abb7c9fb17
Merge branch 'kill-rcspell' into feature/refactor-rcspell
...
Conflicts:
src/kernel/config.h
src/main.c
src/report.c
src/reports.c
src/reports.test.c
src/spells.c
2017-05-21 21:33:29 +02:00
Enno Rehling
7806f4991f
store calendar configuration nin JSON, not XML.
2017-05-07 17:46:51 +02:00
Enno Rehling
d633c2a9fb
BUG 2310: counting units and people.
...
reduce number of count_all loops made,
make f->num_units and f->num_people be correct.
2017-03-11 19:36:26 +01:00
Enno Rehling
ba8f51b7d4
Merge pull request #667 from ennorehling/hotfix/config-2301
...
fix bugs 2301, 2302, 2303
2017-03-06 21:57:23 +01:00
Enno Rehling
05bb109a09
BUG 2303: allied units are not traitors.
...
had to rewrite the creport code for this, it is probably less efficient now than ever, but at least it works.
2017-03-06 21:35:48 +01:00
Enno Rehling
f699c32f0e
BUG 2298: fix NR display.
...
always use correct singular or plural form.
2017-03-05 18:25:15 +01:00
Enno Rehling
0379a17350
make report_resource return an rtype, not a name.
2017-03-05 17:42:57 +01:00
Enno Rehling
45862a06d0
Add a good test for the NR.
...
TODO: make it fail.
2017-03-05 16:55:11 +01:00
Enno Rehling
caa8159428
eliminate duplicate string definition
2017-03-05 09:52:17 +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
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
ee88c13732
Korrekte Email-Subject und Adresse, auch im NR.
...
Eliminate crufty per-game strings.
2017-01-26 18:06:48 +01:00
Enno Rehling
0496c66028
use FACTION in text template, not ERESSEA
2017-01-26 18:06:15 +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
9351a1960e
gcc warning eliminated
2017-01-26 17:57:21 +01:00
Enno Rehling
d71d5e413a
eliminate unnecessary strncpy use.
2017-01-26 17:57:21 +01:00
Enno Rehling
f297d89958
merge monster.c and monsters.c
...
move RCF_DESERT handling to monsters.c
2017-01-26 17:57:21 +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
7f9313f1a7
static analysis warnings.
...
PVS-Studio warnings reduced or suppressed.
2016-11-23 18:56:40 +01:00
Enno Rehling
ec4060cb9a
fix curse-vigour calculation math.
...
also fix a ton of small other niggles from pvs-studio.
2016-11-20 19:08:39 +01:00
Enno Rehling
27605f18ba
more boring macros removed.
2016-11-17 21:31:11 +01:00
Enno Rehling
303eb86399
factionid and curseid are also boring.
2016-11-17 21:29:15 +01:00
Enno Rehling
434cf8fce6
the unitid macro is boring.
2016-11-17 21:27:19 +01:00
Enno Rehling
413f70d1a1
move market function out of config.c
2016-11-16 22:30:59 +01:00