Commit graph

262 commits

Author SHA1 Message Date
Enno Rehling
48fd0bd4af paused factions do not execute orders, do not join battles.
lots of change, didn't write any tests for this yet.
2021-06-08 19:13:26 +02:00
Enno Rehling
14e95c9675 refactoring building_stage.construction
every building_stage has a construction.
no need to malloc it separately.
optimize some more allocations.
replace some memset and calloc calls.
2021-03-13 15:38:16 +01:00
Enno Rehling
c8d8eb85d3 code style: do not cast the result of malloc 2021-03-13 14:17:07 +01:00
Enno Rehling
5df3c3dc4b fix a crash in give_cmd.
do give_unit last, because it kills the actively iterated list.
2021-03-03 20:10:51 +01:00
Enno Rehling
e0e82c5fa5 fix MSVC warning levels, move _CRT_SECURE_NO_WARNINGS define to sources 2021-02-20 23:22:10 +01:00
Enno Rehling
8c62bd95cd Refactor the wage function for readability.
Add a test for wages at different castle sizes.
2020-12-06 15:47:47 +01:00
Enno Rehling
d4400bb583 remove deprecated init_order_depr 2020-08-16 16:00:30 +02:00
Enno Rehling
7759f7840a VERGESSE <talent> Optimierung wie bei LERNE [AUTO]
Kein Grund, das in der Datenbank zu speichern.
2020-08-16 16:00:30 +02:00
Enno Rehling
e5be92da19 Bug 2679: Nur Bergwächter bewachen Eisen. 2020-08-16 16:00:27 +02:00
Enno Rehling
183981f3c7 bug 2678: fix trade_needs_castle
The logic for "insects do not need castles in deserts or swamps" was broken.
2020-08-16 16:00:27 +02:00
Enno Rehling
405f8f240a No! Static variables are BAD! 2020-05-23 11:21:16 +02:00
Enno Rehling
c53aa27597 bug 2661: desertierende einheiten, spoils
Kampfstatus und Tarnung setzen.
Spoils-Texte für mehr Rassen.
2020-05-23 10:18:18 +02:00
Enno Rehling
3b09b401f7 Revert unnecessary trade limit bugfix
This reverts commit 27aac671a4.
2020-01-16 18:22:01 +01:00
Enno Rehling
27aac671a4 simplicate and add lightness 2020-01-14 21:00:54 +01:00
Enno Rehling
6626cfe297 Bug 2633: implement combined trade limits. 2020-01-14 20:57:29 +01:00
Enno Rehling
bfd89687cd when planting saplings, plant remaining seeds. 2020-01-07 20:37:21 +01:00
Enno Rehling
043949c8d0 Bug 2625 PFLANZE Implementation aufgeklärt, Tests geschrieben. 2020-01-07 20:28:43 +01:00
Enno Rehling
84dfe46ce5 Revert "bug 2625 samen werden direkt zu schoesslingen"
This reverts commit 4f88bf137e.
2020-01-03 20:21:14 +01:00
Enno Rehling
4f88bf137e bug 2625 samen werden direkt zu schoesslingen 2020-01-02 12:10:38 +01:00
Enno Rehling
1a8b94da59 STIRB PARTEI löscht die Befehle nicht.
Reparatur des Tests für VERGESSE MAGIE (Vertraute)
2019-11-24 16:39:21 +01:00
Enno Rehling
70b148296f MACHE beschädigte Konvois 2019-10-21 20:04:32 +02:00
Enno Rehling
d9cbbd9052 Bug 2614: Einheiten bewachen Region vor sich selbst. 2019-10-20 17:11:58 +02:00
Enno Rehling
d5104fa55a Bug 2609 VERGESSE Magie 2019-09-18 20:55:44 +02:00
Enno Rehling
b9ae927aa3 remove copyright notices. 2019-09-13 21:35:44 +02:00
Enno Rehling
007721991d Bug 2606: DRY, share code between buy and sell. 2019-09-08 13:29:10 +02:00
Enno Rehling
d2d782c761 Bug 2606: KAUFE braucht eine Burg. 2019-09-08 13:06:24 +02:00
Enno Rehling
8ddca8ab0e Bug 2458 strikes again: wrong insect warning.
simplify calendar code, add tests.
2019-08-25 15:14:21 +02:00
Enno Rehling
4f80569ebf try using iwyu on travis 2019-08-11 18:03:52 +02:00
Enno Rehling
b89eed2f2a Bugfix in Berechnung von neuem Entertainment-Code. 2019-08-10 05:52:34 +02:00
Enno Rehling
a0bd0378c3 rechenfehler unterhaltung 2019-08-06 20:04:47 +02:00
Enno Rehling
867dcd27f7 512 is not enough economy 2019-08-03 10:02:34 +02:00
Enno Rehling
909a839adf simplify: WORK and ENTERTAIN use the same request array.
reduce need for global variables.
2019-07-30 11:13:25 +02:00
Enno Rehling
fdfe0d3b35 check MAX_ENTERTAINERS.
extract recruit from economy.
Bug 2600 (WIP).
2019-07-29 23:53:59 +02:00
Enno Rehling
a33ac3b402 Increase MAX_WORKERS for Blumenkinder. 2019-07-27 09:28:50 +02:00
Enno Rehling
c70e597b05 Update copyright notice with current date. 2019-07-14 09:37:35 +02:00
Enno Rehling
8605409ed3 limited-skill units are only transferred up to the limit. 2019-05-04 10:45:51 +02:00
Enno Rehling
5868316537 asciification 2019-02-09 12:50:12 +01:00
Enno Rehling
0043690650 Merge branch 'master' into develop 2019-02-02 21:17:23 +01:00
Enno Rehling
af91459fb1 add some variety to familiar selection.
effskill: use NULL, not 0 for pointer arguments.
2019-02-02 20:38:02 +01:00
Enno Rehling
7b8bc8af0f more allocation checks. 2018-12-15 20:01:51 +01:00
Enno Rehling
7ea64be314 code analysis scan.
add checks for malloc results.
reduce stack size.
2018-12-15 19:38:40 +01:00
Enno Rehling
089be4bca8 cppcheck style warnings: reduce variable scope 2018-12-09 03:42:57 +01:00
Enno Rehling
d3a37179ef add param.[hc], at last. 2018-09-29 19:32:39 +02:00
Enno Rehling
a373807189 move attrib and event modules to kernel 2018-09-29 11:37:17 +02:00
Enno Rehling
2e5e8347ac Bug 2489: Kill the SIEGE command, forever. 2018-09-09 21:01:10 +02:00
Enno Rehling
062abe8102 refactor siege property w. getter/setter 2018-09-09 17:10:18 +02:00
Enno Rehling
422415870f Merge branch 'master' 2018-09-09 07:54:41 +02:00
Enno Rehling
6f5f1651c7 fix crashes when trying to trade on ocean.
fix missing message sections.
2018-09-09 07:41:30 +02:00
Enno Rehling
8d88579570 Refactor: extract can_recruit, write tests for insects. 2018-08-02 14:31:00 +02:00
Enno Rehling
3880960acf BUG 2458: fix insect recruit warnings. 2018-08-02 13:53:41 +02:00