summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-01-07 21:22:26 +0000
committerfrosch <frosch@openttd.org>2017-01-07 21:22:26 +0000
commitb363a639aaf0259c27e5d3a6efa6399de526565a (patch)
tree73b15bad88471c75ceb7a32d73d893236e428f32 /src
parent5267b60027ade83871dc74fe3d04b1336d433dda (diff)
downloadopenttd-b363a639aaf0259c27e5d3a6efa6399de526565a.tar.xz
(svn r27723) -Codechange: Simplify tests by using GCF_SYSTEM.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index 5e3d29439..0f6623f64 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -420,8 +420,8 @@ bool FillGRFDetails(GRFConfig *config, bool is_static, Subdirectory subdir)
config->SetSuitablePalette();
config->FinalizeParameterInfo();
- /* Skip if the grfid is 0 (not read) or 0xFFFFFFFF (ttdp system grf) */
- if (config->ident.grfid == 0 || config->ident.grfid == 0xFFFFFFFF || config->IsOpenTTDBaseGRF()) return false;
+ /* Skip if the grfid is 0 (not read) or if it is an internal GRF */
+ if (config->ident.grfid == 0 || HasBit(config->flags, GCF_SYSTEM)) return false;
if (is_static) {
/* Perform a 'safety scan' for static GRFs */