From c0a2c0c23e129cb81400c5204fc9d0eedd9afb85 Mon Sep 17 00:00:00 2001 From: skidd13 Date: Mon, 19 Nov 2007 21:02:30 +0000 Subject: (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style --- src/newgrf_config.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/newgrf_config.cpp') diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index 18235e4ad..dda46f74d 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -76,7 +76,7 @@ bool FillGRFDetails(GRFConfig *config, bool is_static) LoadNewGRFFile(config, 62, GLS_SAFETYSCAN); /* GCF_UNSAFE is set if GLS_SAFETYSCAN finds unsafe actions */ - if (HASBIT(config->flags, GCF_UNSAFE)) return false; + if (HasBit(config->flags, GCF_UNSAFE)) return false; } return CalcGRFMD5Sum(config); @@ -86,7 +86,7 @@ bool FillGRFDetails(GRFConfig *config, bool is_static) void ClearGRFConfig(GRFConfig **config) { /* GCF_COPY as in NOT strdupped/alloced the filename, name and info */ - if (!HASBIT((*config)->flags, GCF_COPY)) { + if (!HasBit((*config)->flags, GCF_COPY)) { free((*config)->filename); free((*config)->name); free((*config)->info); @@ -255,7 +255,7 @@ compatible_grf: * in any case and set the name and info when it is not set already. * When the GCF_COPY flag is set, it is certain that the filename is * already a local one, so there is no need to replace it. */ - if (!HASBIT(c->flags, GCF_COPY)) { + if (!HasBit(c->flags, GCF_COPY)) { free(c->filename); c->filename = strdup(f->filename); memcpy(c->md5sum, f->md5sum, sizeof(c->md5sum)); @@ -550,7 +550,7 @@ static void Save_NGRF() int index = 0; for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) { - if (HASBIT(c->flags, GCF_STATIC)) continue; + if (HasBit(c->flags, GCF_STATIC)) continue; SlSetArrayIndex(index++); SlObject(c, _grfconfig_desc); } -- cgit v1.2.3-54-g00ecf