Changeset - r12286:6bda7de059c5
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-07-01 18:18:12
smatz@openttd.org
(svn r16713) -Doc: document the Subsidy struct
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/subsidy_type.h
Show inline comments
 
@@ -8,12 +8,12 @@
 
#include "cargo_type.h"
 
#include "company_type.h"
 

	
 
/** Struct about subsidies, both offered and awarded */
 
struct Subsidy {
 
	CargoID cargo_type;
 
	byte age;
 
	/* from and to can either be TownID, StationID or IndustryID */
 
	uint16 from;
 
	uint16 to;
 
	CargoID cargo_type; ///< Cargo type involved in this subsidy, CT_INVALID for invalid subsidy
 
	byte age;           ///< Subsidy age; < 12 is unawarded, >= 12 is awarded
 
	uint16 from;        ///< Index of source. Either TownID, IndustryID or StationID, when awarded.
 
	uint16 to;          ///< Index of destination. Either TownID, IndustryID or StationID, when awarded.
 
};
 

	
 
extern Subsidy _subsidies[MAX_COMPANIES];
0 comments (0 inline, 0 general)