mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-11 18:10:14 +00:00
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost -Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
22 lines
644 B
C
22 lines
644 B
C
/* $Id$ */
|
|
|
|
/** @file subsidy_func.h Functions related to subsidies. */
|
|
|
|
#ifndef SUBSIDY_FUNC_H
|
|
#define SUBSIDY_FUNC_H
|
|
|
|
#include "core/geometry_type.hpp"
|
|
#include "station_type.h"
|
|
#include "town_type.h"
|
|
#include "industry_type.h"
|
|
#include "company_type.h"
|
|
|
|
Pair SetupSubsidyDecodeParam(const struct Subsidy *s, bool mode);
|
|
void DeleteSubsidyWith(SourceType type, SourceID index);
|
|
bool CheckSubsidised(CargoID cargo_type, CompanyID company, SourceType src_type, SourceID src, const Station *st);
|
|
void SubsidyMonthlyHandler();
|
|
void RebuildSubsidisedSourceAndDestinationCache();
|
|
void DeleteSubsidy(struct Subsidy *s);
|
|
|
|
#endif /* SUBSIDY_FUNC_H */
|