changeset 15713:e8f155f3aa95 draft

(svn r20379) -Codechange: Draw airport preview using company colours.
author frosch <frosch@openttd.org>
date Thu, 05 Aug 2010 17:16:31 +0000
parents 7502e804286a
children 934e283c3dc6
files src/airport_gui.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 			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;