LunarMongoose
King
I should really stop trusting you blindly
iValue += std::min(4,std::max(1, AI_bonusVal(bla)/10));
This will add at least 1 point, and at most 4 points for a single resource. Which makes a lot more sense.
... Oops.
Well in my defense, I really feel like a function called "min(4, x)" should "enforce a minimum value of 4 onto x"... But of course that's what max() does, and I have to presently type *sheepish* again. My other two recent faux pawz were minor and forgivable though... this blunder here may require an army of sheep in order to look sheepish enough. Sigh. Thanks Fuyu!
Edit - Nevermind, I forgot, that's what the extremely-complicated AI_baseBonusVal() function does. Right, so JDog already took out the min() condition entirely in his update the other day, which I agree with... and cut the divisor in half from 10 down to 5, which I can't argue with without knowing more about the AI_bonusVal() return range... So it's a moot point, but yeah, sorry. I'm gonna try really hard to regain your blind trust in the future.
