GetDataSize
from ddnet
for version 4 i don't really see a reason for keeping itSize
I could maybe make an educated guess|| pTMap->m_Version == 4
to the check. For tele, speedup, ... layers just leave it as it is. They cannot use tile skip anywayextern "C"
block :/extern "C"
but you don't need an entire block, maybe that'd make it look a little betterstd::function
doesn't really care about calling convention, idk what you are doing but maybe you could abuse thatstd::function
can come with overhead though, not sure if it HAS to have overheadextern "C" void (*m_pfnLog)(const char *pLine, void *pUserdata);
didn't workextern "C" typedef int (*fcnptr)(int)
should work