forked from mirror/OpenTTD
(svn r3631) - 2cc: Remove use of some temporary variables and perform minor optimization in the form of the ternary operator.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user