(svn r16403) -Codechange: move code related to subsidies to separate file

This commit is contained in:
smatz
2009-05-23 15:46:00 +00:00
parent 846382a0f3
commit 1eb48cdded
18 changed files with 435 additions and 354 deletions

21
src/subsidy_type.h Normal file
View File

@@ -0,0 +1,21 @@
/* $Id$ */
/** @file subsidy_type.h Types related to subsidies. */
#ifndef SUBSIDY_TYPE_H
#define SUBSIDY_TYPE_H
#include "cargo_type.h"
#include "company_type.h"
struct Subsidy {
CargoID cargo_type;
byte age;
/* from and to can either be TownID, StationID or IndustryID */
uint16 from;
uint16 to;
};
extern Subsidy _subsidies[MAX_COMPANIES];
#endif /* SUBSIDY_TYPE_H */