AI builds Barbarian Weaving Mill on non-seafaring maps
Bug #1722376 reported by
GunChleoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
Reported in the German-language player forum:
https:/
Does the AI read the needs_seafaring property of buildings and compare it to the map's allows_seafaring() function?
allows_seafaring() will need to be checked throughout a game, because the state can change via Lua scripting.
Related branches
lp://staging/~widelands-dev/widelands/ai_small_requests
- GunChleoc: Approve
- kaputtnik (community): Approve (testing)
-
Diff: 296 lines (+73/-31)4 files modifiedsrc/ai/ai_help_structs.cc (+37/-18)
src/ai/ai_help_structs.h (+5/-3)
src/ai/defaultai.cc (+28/-10)
src/ai/defaultai_warfare.cc (+3/-0)
Changed in widelands: | |
status: | Confirmed → Fix Committed |
assignee: | TiborB (tiborb95) → nobody |
To post a comment you must log in.
No, no such check is done. I can add it eventually, though it does not seem to be critical issue to me.... And I am not able to read the german forum link to see how bad it is..