DAM: Moved determination of which callback to use after reading a DAM property to the highest level possible. Changed how objects are selected so that DAM can be used to read map properties without having to have allocated the map object arrays or even a gamemap_t itself. TODO: Put this functionality to use by checking for packed sidedefs before map load. In doing so, compile a database of which side indexes will be copied where. This way, we can avoid having to reallocate map->sidedefs and fix things up latter.
DAM: Moved determination of which callback to use after reading a DAM property to the highest level possible. Changed how objects are selected so that DAM can be used to read map properties without having to have allocated the map object arrays or even a gamemap_t itself.
TODO: Put this functionality to use by checking for packed sidedefs before map load. In doing so, compile a database of which side indexes will be copied where. This way, we can avoid having to reallocate map->sidedefs and fix things up latter.