diff -r fa96e29d7187 -r 982e9f814f97 src/newgrf_gui.cpp --- a/src/newgrf_gui.cpp Tue Jul 22 18:29:06 2008 +0300 +++ b/src/newgrf_gui.cpp Tue Jul 22 21:51:14 2008 +0300 @@ -152,7 +152,9 @@ int n = 0; /* Count the number of GRFs */ - for (c = _all_grfs; c != NULL; c = c->next) n++; + for (c = _all_grfs; c != NULL; c = c->next) + if (!HasBit(c->flags, GCF_CACHE)) + n++; this->vscroll.cap = (wl->bottom - wl->top) / 10; SetVScrollCount(this, n); @@ -164,7 +166,7 @@ uint y = wl->top + 1; for (c = _all_grfs, n = 0; c != NULL && n < (this->vscroll.pos + this->vscroll.cap); c = c->next, n++) { - if (n >= this->vscroll.pos) { + if (!HasBit(c->flags, GCF_CACHE) && n >= this->vscroll.pos) { bool h = c == this->sel; const char *text = (c->name != NULL && !StrEmpty(c->name)) ? c->name : c->filename;