(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.
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user