mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 02:59:10 +00:00
(svn r8111) -Fix r8106: silence warnings
This commit is contained in:
@@ -210,7 +210,7 @@ GCF_Flags IsGoodGRFConfigList(void)
|
|||||||
for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) {
|
for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) {
|
||||||
const GRFConfig *f = FindGRFConfig(c->grfid, c->md5sum);
|
const GRFConfig *f = FindGRFConfig(c->grfid, c->md5sum);
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
char buf[256], *p = buf;
|
char buf[256];
|
||||||
|
|
||||||
/* If we have not found the exactly matching GRF try to find one with the
|
/* If we have not found the exactly matching GRF try to find one with the
|
||||||
* same grfid, as it most likely is compatible */
|
* same grfid, as it most likely is compatible */
|
||||||
|
@@ -1195,6 +1195,7 @@ bool AfterLoadGame(void)
|
|||||||
switch (gcf_res) {
|
switch (gcf_res) {
|
||||||
case GCF_COMPATIBLE: _switch_mode_errorstr = STR_NEWGRF_COMPATIBLE_LOAD_WARNING; break;
|
case GCF_COMPATIBLE: _switch_mode_errorstr = STR_NEWGRF_COMPATIBLE_LOAD_WARNING; break;
|
||||||
case GCF_NOT_FOUND: _switch_mode_errorstr = STR_NEWGRF_DISABLED_WARNING; break;
|
case GCF_NOT_FOUND: _switch_mode_errorstr = STR_NEWGRF_DISABLED_WARNING; break;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update current year
|
/* Update current year
|
||||||
|
Reference in New Issue
Block a user