1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 07:59:09 +00:00

Codechange: remove unneeded dereference chunk type flag

This commit is contained in:
Rubidium
2025-01-14 19:14:18 +01:00
committed by rubidium42
parent 266b733095
commit 87e228b8b5
2 changed files with 0 additions and 7 deletions

View File

@@ -129,7 +129,6 @@ bool LoadChunk(LoadgameState *ls, void *base, const OldChunks *chunks)
}
uint8_t *ptr = (uint8_t*)chunk->ptr;
if (chunk->type & OC_DEREFERENCE_POINTER) ptr = *(uint8_t**)ptr;
for (uint i = 0; i < chunk->amount; i++) {
/* Handle simple types */

View File

@@ -70,12 +70,6 @@ enum OldChunkType : uint32_t {
OC_TILE = OC_VAR_U32 | OC_FILE_U16,
/**
* Dereference the pointer once before writing to it,
* so we do not have to use big static arrays.
*/
OC_DEREFERENCE_POINTER = 1U << 31,
OC_END = 0, ///< End of the whole chunk, all 32 bits set to zero
};