diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
commit | c0a2c0c23e129cb81400c5204fc9d0eedd9afb85 (patch) | |
tree | 21212e0b25777aac62f30d88b981e2bd624c4616 /src/newgrf_gui.cpp | |
parent | 7a4d96f629a9bd447846f8569fad78cf8e5196c5 (diff) | |
download | openttd-c0a2c0c23e129cb81400c5204fc9d0eedd9afb85.tar.xz |
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index aa4e308a7..d2ad51ceb 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -94,7 +94,7 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint w, uint bott /* Show flags */ if (c->status == GCS_NOT_FOUND) y += DrawStringMultiLine(x, y, STR_NEWGRF_NOT_FOUND, w, bottom - y); if (c->status == GCS_DISABLED) y += DrawStringMultiLine(x, y, STR_NEWGRF_DISABLED, w, bottom - y); - if (HASBIT(c->flags, GCF_COMPATIBLE)) y += DrawStringMultiLine(x, y, STR_NEWGRF_COMPATIBLE_LOADED, w, bottom - y); + if (HasBit(c->flags, GCF_COMPATIBLE)) y += DrawStringMultiLine(x, y, STR_NEWGRF_COMPATIBLE_LOADED, w, bottom - y); /* Draw GRF info if it exists */ if (c->info != NULL && !StrEmpty(c->info)) { @@ -360,9 +360,9 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) /* Do not show a "not-failure" colour when it actually failed to load */ if (pal != PALETTE_TO_RED) { - if (HASBIT(c->flags, GCF_STATIC)) { + if (HasBit(c->flags, GCF_STATIC)) { pal = PALETTE_TO_GREY; - } else if (HASBIT(c->flags, GCF_COMPATIBLE)) { + } else if (HasBit(c->flags, GCF_COMPATIBLE)) { pal = PALETTE_TO_ORANGE; } } |