summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-15 11:06:54 +0000
committertron <tron@openttd.org>2005-10-15 11:06:54 +0000
commitd5042d4ab2739150a311f032a7df63b45ef65928 (patch)
treeb29021fa7ba6b899a521aa0856f9ea9ba5047dbe /train_gui.c
parentab41ccb23c92b30fdbdfe793e31ccc4bd5df6661 (diff)
downloadopenttd-d5042d4ab2739150a311f032a7df63b45ef65928.tar.xz
(svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c
index 67968945a..194c4fb44 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -442,7 +442,7 @@ static void DrawTrainDepotWindow(Window *w)
DrawStringRightAligned(w->widget[6].right - 1, y + 4, STR_TINY_BLACK, 0); //Draw the counter
/* Draw the pretty flag */
- DrawSprite(v->vehstatus&VS_STOPPED ? 0xC12 : 0xC13, x+15, y);
+ DrawSprite(v->vehstatus & VS_STOPPED ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, x + 15, y);
y += 14;
}
@@ -984,7 +984,7 @@ static void TrainViewWndProc(Window *w, WindowEvent *e)
}
/* draw the flag plus orders */
- DrawSprite(v->vehstatus & VS_STOPPED ? 0xC12 : 0xC13, 2, w->widget[5].top + 1);
+ DrawSprite(v->vehstatus & VS_STOPPED ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, 2, w->widget[5].top + 1);
DrawStringCenteredTruncated(w->widget[5].left + 8, w->widget[5].right, w->widget[5].top + 1, str, 0);
DrawWindowViewport(w);
} break;