Hi I have to admit that on a quick glance it looks not very comprehensible but after some thoughts I believe I understand what is going on in the code. While digging what preciousness is doing I probably found a bug giving preciousness a direct effect on the building necessity. In https://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/src/ai/defaultai.cc#L5150
there should be probably inputs[i] instead of inputs[1].
Hi /bazaar. launchpad. net/~widelands- dev/widelands/ trunk/view/ head:/src/ ai/defaultai. cc#L5150
I have to admit that on a quick glance it looks not very comprehensible but after some thoughts I believe I understand what is going on in the code. While digging what preciousness is doing I probably found a bug giving preciousness a direct effect on the building necessity.
In
https:/
there should be probably inputs[i] instead of inputs[1].