# HG changeset patch # User frosch # Date 2010-08-05 17:16:31 # Node ID 2c8b12e88b3b89200b99b207f8ae46de5a2ce5ee # Parent 3550d02c0ac4601817a3da520dc42a1558bfbee5 (svn r20379) -Codechange: Draw airport preview using company colours. diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -28,6 +28,7 @@ #include "widgets/dropdown_type.h" #include "core/geometry_func.hpp" #include "hotkeys.h" +#include "sprite.h" #include "table/sprites.h" #include "table/strings.h" @@ -352,7 +353,7 @@ public: case BAIRW_AIRPORT_SPRITE: if (this->preview_sprite != 0) { Dimension d = GetSpriteSize(this->preview_sprite); - DrawSprite(this->preview_sprite, PAL_NONE, (r.left + r.right - d.width) / 2, (r.top + r.bottom - d.height) / 2); + DrawSprite(this->preview_sprite, COMPANY_SPRITE_COLOUR(_local_company), (r.left + r.right - d.width) / 2, (r.top + r.bottom - d.height) / 2); } break;