equal
deleted
inserted
replaced
68 } |
68 } |
69 |
69 |
70 /* Find and load the Action 8 information */ |
70 /* Find and load the Action 8 information */ |
71 /* 62 is the last file slot before sample.cat. |
71 /* 62 is the last file slot before sample.cat. |
72 * Should perhaps be some "don't care" value */ |
72 * Should perhaps be some "don't care" value */ |
73 LoadNewGRFFile(config, 62, is_static ? GLS_SAFETYSCAN : GLS_FILESCAN); |
73 LoadNewGRFFile(config, 62, GLS_FILESCAN); |
74 |
|
75 /* GCF_UNSAFE is set if GLS_SAFETYSCAN finds unsafe actions */ |
|
76 if (HASBIT(config->flags, GCF_UNSAFE)) return false; |
|
77 |
74 |
78 /* Skip if the grfid is 0 (not read) or 0xFFFFFFFF (ttdp system grf) */ |
75 /* Skip if the grfid is 0 (not read) or 0xFFFFFFFF (ttdp system grf) */ |
79 if (config->grfid == 0 || config->grfid == 0xFFFFFFFF) return false; |
76 if (config->grfid == 0 || config->grfid == 0xFFFFFFFF) return false; |
|
77 |
|
78 if (is_static) { |
|
79 /* Perform a 'safety scan' for static GRFs */ |
|
80 LoadNewGRFFile(config, 62, GLS_SAFETYSCAN); |
|
81 |
|
82 /* GCF_UNSAFE is set if GLS_SAFETYSCAN finds unsafe actions */ |
|
83 if (HASBIT(config->flags, GCF_UNSAFE)) return false; |
|
84 } |
80 |
85 |
81 return CalcGRFMD5Sum(config); |
86 return CalcGRFMD5Sum(config); |
82 } |
87 } |
83 |
88 |
84 |
89 |