|
|
/* $Id$ */
|
|
|
|
|
|
/** @file subsidy_gui.cpp */
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
#include "openttd.h"
|
|
|
#include "table/strings.h"
|
|
|
#include "functions.h"
|
|
|
#include "station.h"
|
|
|
#include "industry.h"
|
|
|
#include "town.h"
|
|
|
#include "player.h"
|
|
|
#include "economy_func.h"
|
|
|
#include "variables.h"
|
|
|
#include "date.h"
|
|
|
#include "cargotype.h"
|
|
|
#include "window_gui.h"
|
|
|
#include "strings_func.h"
|
|
|
|
|
|
static void HandleSubsidyClick(int y)
|
|
|
{
|
|
|
const Subsidy *s;
|
|
|
uint num;
|
|
|
int offs;
|
|
|
TileIndex xy;
|
|
|
|
|
|
if (y < 0) return;
|
|
|
|
|
|
num = 0;
|
|
|
for (s = _subsidies; s != endof(_subsidies); s++) {
|
|
|
if (s->cargo_type != CT_INVALID && s->age < 12) {
|
|
|
y -= 10;
|