MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetOldChunkFileType

Function GetOldChunkFileType

src/saveload/oldloader.cpp:32–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30static inline OldChunkType GetOldChunkType(OldChunkType type) {return (OldChunkType)GB(type, 0, 4);}
31static inline OldChunkType GetOldChunkVarType(OldChunkType type) {return (OldChunkType)(GB(type, 8, 8) << 8);}
32static inline OldChunkType GetOldChunkFileType(OldChunkType type) {return (OldChunkType)(GB(type, 16, 8) << 16);}
33
34/**
35 * Return expected size in bytes of a OldChunkType

Callers 1

LoadChunkFunction · 0.85

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected