(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:
2006-02-20 21:49:31 +00:00
parent 3efd51dd76
commit a66e4c7e6c
4 changed files with 7 additions and 16 deletions

View File

@@ -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);