diff options
author | maedhros <maedhros@openttd.org> | 2007-03-06 19:33:28 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-03-06 19:33:28 +0000 |
commit | 1c7df202c649b4dad5fe5e5f53fb33191a440724 (patch) | |
tree | dd3c567c0980606c17509a28df3ceea5975adb03 /src/settings.cpp | |
parent | 429c41ea51d142a7e99d20beba7bcd2ce99d747c (diff) | |
download | openttd-1c7df202c649b4dad5fe5e5f53fb33191a440724.tar.xz |
(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.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |