summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium42 <rubidium42@users.noreply.github.com>2021-07-11 11:23:47 +0200
committerGitHub <noreply@github.com>2021-07-11 11:23:47 +0200
commita4987233454b65c7ebcee37fb22e37c13638476d (patch)
treef628cd85008f073482c5d228ff0024cee17b7dd9 /src
parentf6955a304c52e4755e9dfcec5fe94370aef1896d (diff)
downloadopenttd-a4987233454b65c7ebcee37fb22e37c13638476d.tar.xz
Remove: arbitrary limit on number of statically loaded NewGRFs (#9431)
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 023ad9890..17e5ee6a0 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -80,7 +80,6 @@ static uint32 _ttdpatch_flags[8];
GRFLoadedFeatures _loaded_newgrf_features;
static const uint MAX_SPRITEGROUP = UINT8_MAX; ///< Maximum GRF-local ID for a spritegroup.
-static const uint MAX_GRF_COUNT = 128; ///< Maximum number of NewGRF files that could be loaded.
/** Temporary data during loading of GRFs */
struct GrfProcessingState {
@@ -9854,14 +9853,6 @@ void LoadNewGRF(uint load_index, uint num_baseset)
num_non_static++;
}
- if (num_grfs >= MAX_GRF_COUNT) {
- Debug(grf, 0, "'{}' is not loaded as the maximum number of file slots has been reached", c->filename);
- c->status = GCS_DISABLED;
- c->error = new GRFError(STR_NEWGRF_ERROR_MSG_FATAL, STR_NEWGRF_ERROR_TOO_MANY_NEWGRFS_LOADED);
- continue;
- }
- num_grfs++;
-
LoadNewGRFFile(c, stage, subdir, false);
if (stage == GLS_RESERVE) {
SetBit(c->flags, GCF_RESERVED);