(svn r17104) -Codechange: move code related to subsidy awarding to separate procedure

This commit is contained in:
smatz
2009-08-07 20:24:33 +00:00
parent 3ec90df76c
commit fb24991366
2 changed files with 39 additions and 23 deletions

View File

@@ -7,6 +7,7 @@
#include "cargo_type.h"
#include "company_type.h"
#include "station_type.h"
typedef uint16 SubsidyID; ///< ID of a subsidy
@@ -26,6 +27,8 @@ struct Subsidy {
return this->age >= 12;
}
void AwardTo(StationID from, StationID to, CompanyID company);
/**
* Determines index of this subsidy
* @return index (in the Subsidy::array array)