Implement custom sprite detection with new sprite mechanism
This commit is contained in:
@@ -10014,7 +10014,10 @@ void LoadNewGRFFile(GRFConfig *config, GrfLoadingStage stage, Subdirectory subdi
|
||||
SpriteFile temporarySpriteFile(filename, subdir, needs_palette_remap);
|
||||
LoadNewGRFFileFromFile(config, stage, temporarySpriteFile);
|
||||
} else {
|
||||
LoadNewGRFFileFromFile(config, stage, OpenCachedSpriteFile(filename, subdir, needs_palette_remap));
|
||||
SpriteFile &file = OpenCachedSpriteFile(filename, subdir, needs_palette_remap);
|
||||
LoadNewGRFFileFromFile(config, stage, file);
|
||||
file.flags |= SFF_USERGRF;
|
||||
if (config->ident.grfid == BSWAP32(0xFF4F4701)) file.flags |= SFF_OGFX;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user