Enno Rehling
033070663a
code analysis scan.
...
add checks for malloc results.
reduce stack size.
2019-03-03 09:41:15 +01:00
Enno Rehling
11316a4992
remove jsreport.
...
fix some cppcheck warnings.
2019-03-03 09:39:52 +01:00
Enno Rehling
a373807189
move attrib and event modules to kernel
2018-09-29 11:37:17 +02:00
Enno Rehling
db253ea6a1
newterrain was unfit for unit testing.
...
bad test: insects cannot trade in deserts without castle.
2018-03-04 20:03:13 +01:00
Enno Rehling
f67a4943e4
fix some cppcheck warnings
2018-02-11 15:43:24 +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
eccf6bef7a
consistent naming of module configurations (singular).
...
add module switch for volcano.
2017-11-06 21:04:30 +01:00
Enno Rehling
7196f799e6
add a terrain_changed function for use with static terrain variables.
2017-11-06 20:29:26 +01:00
Enno Rehling
440679da87
code that uses newterrain needs to set up terrains in tests.
2017-11-05 17:00:40 +01:00
Enno Rehling
2b81334ba2
use the correct swamp terrain, still failing. newterrain is a plague.
2017-11-05 16:43:01 +01: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
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
8b7dae6977
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-10 16:31:05 +01:00
Enno Rehling
b5455531e7
do not leak terrain.herbs
2015-10-14 21:37:27 +02:00
Enno Rehling
c707ff39b6
memory leak: properly free terrain_production objects
2015-09-11 12:17:35 +02:00
Enno Rehling
1e6a83f357
resize buffer in eval_command, it was too small for many commands.
...
increase MAXTEACHERS.
eliminate oldterrain warning in json_report.
2015-08-06 16:52:24 +02:00
Enno Rehling
1dc516ab50
reduce warning level on oldterrain() log, warn from caller (json_report) instead.
2015-05-15 07:59:06 +02:00
Enno Rehling
9664f2b191
Implement an optional JSON report writer. Currently writes readable maps for Tiled.
2015-03-29 14:03:56 +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
a55cb13924
make valgrind happy when running tests (cleanup)
2014-12-30 02:02:10 +01:00
Enno Rehling
acbef7a3a0
fix missing locales initialization
2014-06-15 21:19:47 -07:00
Enno Rehling
24dc006e43
fix json config for terrains, some other stuff.
2014-06-13 17:36:05 -07:00
Enno Rehling
03c247c788
I am killing the core/ directory.
...
Lots of files are moving to a new location in src/
Some intersting CMake changes.
2014-02-18 05:45:00 +01:00