diff options
author | peter1138 <peter1138@openttd.org> | 2006-02-20 21:49:31 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-02-20 21:49:31 +0000 |
commit | a66e4c7e6cf8823418ff299a1b2d060a5491476c (patch) | |
tree | 8091f201e38eb46e57db61694b780a1cfa1b956b /ship_gui.c | |
parent | 3efd51dd7688e7536eefd79448f88fc19585f8ce (diff) | |
download | openttd-a66e4c7e6cf8823418ff299a1b2d060a5491476c.tar.xz |
(svn r3631) - 2cc: Remove use of some temporary variables and perform minor optimization in the form of the ternary operator.
Diffstat (limited to 'ship_gui.c')
-rw-r--r-- | ship_gui.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ship_gui.c b/ship_gui.c index 394438c20..b46dfa62d 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -65,9 +65,7 @@ void DrawShipPurchaseInfo(int x, int y, EngineID engine_number) static void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection) { - int image = GetShipImage(v, 6); - uint32 ormod = GetVehiclePalette(v); - DrawSprite(image | ormod, x + 32, y + 10); + DrawSprite(GetShipImage(v, 6) | GetVehiclePalette(v), x + 32, y + 10); if (v->index == selection) { DrawFrameRect(x - 5, y - 1, x + 67, y + 21, 15, FR_BORDERONLY); |