diff options
author | tron <tron@openttd.org> | 2005-10-15 11:06:54 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-15 11:06:54 +0000 |
commit | 53a4a6a0f4f2575768b094018d58c63b40a32dad (patch) | |
tree | b29021fa7ba6b899a521aa0856f9ea9ba5047dbe /ship_gui.c | |
parent | 668963a3591759e82bd247d49164b1c8754fd785 (diff) | |
download | openttd-53a4a6a0f4f2575768b094018d58c63b40a32dad.tar.xz |
(svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list
Diffstat (limited to 'ship_gui.c')
-rw-r--r-- | ship_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ship_gui.c b/ship_gui.c index c9ff4c5df..1be633b4b 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -523,7 +523,7 @@ static void ShipViewWndProc(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; @@ -663,7 +663,7 @@ static void DrawShipDepotWindow(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, y + 9); + DrawSprite((v->vehstatus & VS_STOPPED) ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, x, y + 9); if ((x+=90) == 2 + 90 * w->hscroll.cap) { x = 2; |