diff options
author | smatz <smatz@openttd.org> | 2009-05-23 15:46:00 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-23 15:46:00 +0000 |
commit | b2aed51f8e42e0e45d08a65b8883b3fa034d0f4b (patch) | |
tree | 3b45fa52ccaffe68d01b5f234afc6b2c927b92bc /src/subsidy_type.h | |
parent | f2317d0d9d74c3f5d14530c14b314ad32d05ef80 (diff) | |
download | openttd-b2aed51f8e42e0e45d08a65b8883b3fa034d0f4b.tar.xz |
(svn r16403) -Codechange: move code related to subsidies to separate file
Diffstat (limited to 'src/subsidy_type.h')
-rw-r--r-- | src/subsidy_type.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/subsidy_type.h b/src/subsidy_type.h new file mode 100644 index 000000000..bec1a2cd4 --- /dev/null +++ b/src/subsidy_type.h @@ -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 */ |