AI does not expand to unguarded enemy land
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
AI does not expand into unguarded but enemy owned land. this is due to only unowned spots are taken into account for this consideration.
relevant code is in defaultai.cc line 1329 following.
proposal is to change line 1329 like the following
if (field.
furthermore this would lead to the addition of the following block after line 1335
field.unowned_
map.
already tested this solution and it works
Related branches
- Benedikt Straub: Approve
- hessenfarmer: Needs Resubmitting
- TiborB: Approve
-
Diff: 411 lines (+73/-48)11 files modifieddata/ai/ai_input_1.wai (+1/-1)
data/ai/ai_input_2.wai (+1/-1)
data/ai/ai_input_3.wai (+1/-1)
data/ai/ai_input_4.wai (+1/-1)
data/tribes/buildings/productionsites/atlanteans/horsefarm/init.lua (+1/-1)
data/tribes/buildings/productionsites/barbarians/barracks/init.lua (+0/-1)
data/tribes/buildings/productionsites/barbarians/cattlefarm/init.lua (+1/-1)
data/tribes/buildings/productionsites/empire/donkeyfarm/init.lua (+1/-1)
data/tribes/wares/coal/init.lua (+4/-4)
src/ai/defaultai.cc (+62/-35)
src/ai/defaultai.h (+0/-1)
tags: | added: ai |
Changed in widelands: | |
status: | New → In Progress |
milestone: | none → build21-rc1 |
assignee: | nobody → hessenfarmer (stephan-lutz) |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
assignee: | hessenfarmer (stephan-lutz) → nobody |
what is that "??"