nukeykt / NBlood

Reverse-engineered ports of Build games using EDuke32 engine technology and development principles (NBlood/Rednukem/PCExhumed)
606 stars 75 forks source link

Blood: Allow tileGetSurfType() to return ceiling type if supplied nType bitflag #760

Closed tmyqlfpir closed 1 year ago

tmyqlfpir commented 1 year ago

This PR addresses a possible issue when attempting to derive ceiling sector type from tileGetSurfType().

When the sprite limit was increased for NBlood, tileGetSurfType()'s switch statement could no longer hit 0x6000. While no active code does use tileGetSurfType() to get ceiling surface type, it is now possible by supplying nType with the surface bitflag type.