Make mapflags bitmask instead of bitfield
Add mapflag for outside