summaryrefslogtreecommitdiff
path: root/roadveh_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 /roadveh_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 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c
index b812594e1..0bc85c357 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -284,7 +284,7 @@ static void RoadVehViewWndProc(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;
@@ -587,7 +587,7 @@ static void DrawRoadDepotWindow(Window *w)
SetDParam(0, v->unitnumber);
DrawString(x, y+2, (uint16)(v->max_age-366) >= v->age ? STR_00E2 : STR_00E3, 0);
- DrawSprite( (v->vehstatus & VS_STOPPED) ? 0xC12 : 0xC13, x + 16, y);
+ DrawSprite((v->vehstatus & VS_STOPPED) ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, x + 16, y);
if ((x+=56) == 2 + 56 * w->hscroll.cap) {
x = 2;