File diff r15702:3550d02c0ac4 → r15703:2c8b12e88b3b
src/airport_gui.cpp
Show inline comments
 
@@ -25,12 +25,13 @@
 
#include "station_type.h"
 
#include "newgrf_airport.h"
 
#include "newgrf_callbacks.h"
 
#include "widgets/dropdown_type.h"
 
#include "core/geometry_func.hpp"
 
#include "hotkeys.h"
 
#include "sprite.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
static AirportClassID _selected_airport_class; ///< the currently visible airport class
 
static int _selected_airport_index;            ///< the index of the selected airport in the current class or -1
 
@@ -349,13 +350,13 @@ public:
 
				break;
 
			}
 

	
 
			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;
 

	
 
			case BAIRW_EXTRA_TEXT:
 
				if (_selected_airport_index != -1) {
 
					const AirportSpec *as = GetAirportSpecFromClass(_selected_airport_class, _selected_airport_index);