From b838a906572d85369356d521ca292ce762bc86a1 Mon Sep 17 00:00:00 2001 From: maedhros Date: Tue, 6 Mar 2007 19:33:28 +0000 Subject: (svn r9031) -Codechange: Introduce grfconfig->status, and use it for states that are mutually exclusive. At the same time, add an INITIALISED state which makes it possible to check if a grf is not yet active but will be later on during the GLS_ACTIVATION loading stage. --- src/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp index 0e9c73a76..b73b31a29 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1530,7 +1530,7 @@ static GRFConfig *GRFLoadConfig(IniFile *ini, const char *grpname, bool is_stati if (!FillGRFDetails(c, is_static)) { const char *msg; - if (HASBIT(c->flags, GCF_NOT_FOUND)) { + if (c->status == GCS_NOT_FOUND) { msg = "not found"; } else if (HASBIT(c->flags, GCF_UNSAFE)) { msg = "unsafe for static use"; -- cgit v1.2.3-54-g00ecf