just a minor logic tweak to try to speed the mapgen code up further.