summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newgrf_gui.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index e3d7db51e..e1479d125 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -358,10 +358,13 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
break;
}
- if (HASBIT(c->flags, GCF_STATIC)) {
- pal = PALETTE_TO_GREY;
- } else if (HASBIT(c->flags, GCF_COMPATIBLE)) {
- pal = PALETTE_TO_ORANGE;
+ /* Do not show a "not-failure" colour when it actually failed to load */
+ if (pal != PALETTE_TO_RED) {
+ if (HASBIT(c->flags, GCF_STATIC)) {
+ pal = PALETTE_TO_GREY;
+ } else if (HASBIT(c->flags, GCF_COMPATIBLE)) {
+ pal = PALETTE_TO_ORANGE;
+ }
}
DrawSprite(SPR_SQUARE, pal, 5, y + 2);