mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 23:08:56 +00:00
Sinced18a6392b3all resource maps were rebuilt whenever an entity in SharedScript.resources was destroyed. As every entity was listed there, not only resources, that happened on almost every turn and took most of the AI time in big games. Keep instead the influence of each resource on the maps, and subtract it when the resource is destroyed. Liked18a6392b3, this does not need entityObj.