Re: tool request (terrain math)
Change "mask" to the actual bitmask you want.
Code:
awk '/#terrain/ && (and($3,mask)==mask){print; i++;} END{print i " start locations";}' map.mp
I'm at my folks place so I can't check to see if it works.
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
|