<i>This post was originally made by <b>skyjake</b> on the dengDevs blog. It was posted under the category: Blog.</i>
I've been thinking about the pointer-based DMU functions. If there was a way to quickly and easily determine the type of the map object that a pointer refers to, there would be no need to pass the type as a parameter to the DMU pointer-based functions. This would make life much easier and safer.
P_SetFixedp(DMU_SECTOR, sector, DMU_FLOOR_HEIGHT, newHeight);
P_SetFixedp(sector, DMU_FLOOR_HEIGHT, newHeight);
Although, something has to be done with the special DMU_LINE_OF_SECTOR and that kind of stuff.