Optimize AttackMap::precompute.

About a 5% speed gain on the Hyperion. Not super great, so old implementation is left in comments.