Commit Graph

25 Commits

Author SHA1 Message Date
Enno Rehling b9ae927aa3 remove copyright notices. 2019-09-13 21:35:44 +02:00
Enno Rehling c70e597b05 Update copyright notice with current date. 2019-07-14 09:37:35 +02:00
Enno Rehling 033070663a code analysis scan.
add checks for malloc results.
reduce stack size.
2019-03-03 09:41:15 +01:00
Enno Rehling ba9af6d765 1. region_create(uid)
2. read_region_reference never gets a callback, so save it.
2018-11-01 21:08:59 +01:00
Enno Rehling d9167b8a59 do not use late resolution for factions, ever 2018-11-01 09:53:23 +01:00
Enno Rehling b22d838a57 move gamedata.c to kernel 2018-09-29 13:21:46 +02:00
Enno Rehling a373807189 move attrib and event modules to kernel 2018-09-29 11:37:17 +02: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 902e2126c9 WIP: change the resolve.h API 2017-09-21 17:29:01 +02:00
Enno Rehling 89e162c12a change resolve.h api to use int, not variant. 2017-09-19 11:42:02 +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 13c29c136c eliminate config.h from triggers.
was only used once, for a single fset macro
2016-11-23 17:52:57 +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 db852a05fd eliminate global.data_version completely 2016-02-24 11:58:05 +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 2d30d4cce6 trigger_type.read gets a gamedata object
github issue #479
2016-02-24 11:46:54 +01:00
Enno Rehling 1bb215dd52 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/kernel/save.c
	src/triggers/createunit.c
2016-02-23 08:35:31 +01:00
Enno Rehling be99c02a82 fix valgrind report 2016-02-22 20:48:24 +01:00
Enno Rehling 7fe07439f5 fix write_faction_reference, check for f->alive in other places
TODO:
1. I added some new TODOs
2. What happens to morale when region owners die?
3. Needs tests
2016-02-22 20:47:06 +01:00
Enno Rehling a6fe697c7a tests for read/write of triggers that reference factions, with bugfixes. 2016-02-17 13:55:48 +01: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 7358c48580 removing some naming conflicts that hapen when trying to re-enable amalgamation builds. 2014-04-11 19:41:17 -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
Renamed from core/src/triggers/createunit.c (Browse further)