1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00
Commit Graph

14 Commits

Author SHA1 Message Date
Mircea TheHonestCTO
a836cd3aed fix: time-of-check-to-time-of-use (TOCTOU) race condition in AIMemory::removeInvisibleObjects; a bit of refactoring in RecruitHeroBehavior and some todo comments for later on 2025-09-25 17:09:42 +02:00
Mircea TheHonestCTO
1d5cb2c8b8 clang formatting RecruitHeroBehavior 2025-09-12 20:25:23 +02:00
Mircea TheHonestCTO
47edbb7825 fix Cannot get object with id %d. Object was removed. Game crashing if AI loses a hero in a fight where humans don't see the map 2025-09-02 11:08:31 +02:00
Mircea TheHonestCTO
13bd7ed8f4 WIP remove thread_local CCallback in HeroPtr 2025-09-01 04:49:21 +02:00
Mircea TheHonestCTO
fa677eb243 WIP remove thread_local CCallback * ccTl 2025-08-30 20:15:03 +02:00
Mircea TheHonestCTO
58543f23cf refactoring RecruitHeroBehavior + test sample; renamed more Nullkiller variables consistently 2025-08-24 09:12:34 +02:00
Mircea TheHonestCTO
f7f09ff325 simplification: remove nullkiller->dangerHitMap->updateHitMap() from RecruitHeroBehavior, BuyArmyBehavior and BuildingBehavior. Now it's called only once before getting into those decomposers;
simplification: remove partialUpdate bool from Nullkiller:updateState as it depends on pathfinderInvalidated anyway;
restructure goal/RecruitHeroBehavior to allow easier testing
2025-08-20 03:08:02 +02:00
Mircea TheHonestCTO
bf3d5627e0 Bring back cbc in CAdventureAI and rename the rest to cc 2025-08-16 20:17:18 +02:00
Mircea TheHonestCTO
9a09654a0f consistent renaming of ai into aiGw or aiNk and cbc 2025-08-15 18:30:28 +02:00
Mircea TheHonestCTO
a9ecaca81f squashed: BuildAnalyzer wip; Nulkiller decompose; Nulkiller makeTurnHelperPriorityPass; Nulkiller minor refactoring 2025-08-14 23:15:23 +02:00
Mircea TheHonestCTO
76e91f7689 AIGateway.cpp extracting methods that can be isolated/static 2025-08-14 03:09:42 +02:00
Mircea TheHonestCTO
64324f4821 change namespace 2025-08-13 17:16:27 +02:00
Mircea TheHonestCTO
fec11fc9f5 revert file name without 2 to make it easier to compare new vs old 2025-08-13 17:05:30 +02:00
Mircea TheHonestCTO
ffad6c6a43 cloned Nullkiller into Nullkiller2 2025-08-13 14:41:15 +02:00