Code: Select all
local area = AITileList();
area.AddRectangle(AITown.GetLocation(town) - 3, AITown.GetLocation(town) + 3);
area.Valuate(AITile.IsBuildableRectangle, 2, 2);
area.KeepValue(1); // true=buildable, false=not, but you have to use a numeric value here
Whenever possible, I always prefer to write code that says precisely what I mean (so in this instance I'd want to use area.KeepValue(true); as that's what I'm actually testing for.) Is the current behaviour an easily-fixed oversight, or is it considered correct (if so, why?), or is it something I'll have to live with? I don't mind which, but I'd like to know the devs' coding philosophy on areas like this. Thanks.