mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 01:29:10 +00:00
(svn r11329) -Fix: if a NewGRF failed to load for some reason (like fatal errors), but it was a "compatible" NewGRF, it was shown with the compatible colour and not the not-loaded colour in the NewGRF list.
This commit is contained in:
@@ -358,10 +358,13 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HASBIT(c->flags, GCF_STATIC)) {
|
/* Do not show a "not-failure" colour when it actually failed to load */
|
||||||
pal = PALETTE_TO_GREY;
|
if (pal != PALETTE_TO_RED) {
|
||||||
} else if (HASBIT(c->flags, GCF_COMPATIBLE)) {
|
if (HASBIT(c->flags, GCF_STATIC)) {
|
||||||
pal = PALETTE_TO_ORANGE;
|
pal = PALETTE_TO_GREY;
|
||||||
|
} else if (HASBIT(c->flags, GCF_COMPATIBLE)) {
|
||||||
|
pal = PALETTE_TO_ORANGE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawSprite(SPR_SQUARE, pal, 5, y + 2);
|
DrawSprite(SPR_SQUARE, pal, 5, y + 2);
|
||||||
|
Reference in New Issue
Block a user