summaryrefslogtreecommitdiff
path: root/src/airport_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-05 17:16:31 +0000
committerfrosch <frosch@openttd.org>2010-08-05 17:16:31 +0000
commit66dd872bdca15d26451e75de93bd0c0581b18ba6 (patch)
tree1fb71be76233395face6283d4aec2bbdb5d8475e /src/airport_gui.cpp
parent32a710303ebbd7ac8b6998f28a089abfb1a376b0 (diff)
downloadopenttd-66dd872bdca15d26451e75de93bd0c0581b18ba6.tar.xz
(svn r20379) -Codechange: Draw airport preview using company colours.
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r--src/airport_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index 9c86c1161..4ab064007 100644
--- 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;