From d5042d4ab2739150a311f032a7df63b45ef65928 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 15 Oct 2005 11:06:54 +0000 Subject: (svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list --- roadveh_gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roadveh_gui.c') 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; -- cgit v1.2.3-54-g00ecf