(svn r24691) -Codechange: Add resolver classes for vehicles.

This commit is contained in:
alberth
2012-11-10 20:45:04 +00:00
parent e087503fd6
commit 69e07c3e00
4 changed files with 143 additions and 159 deletions

View File

@@ -350,15 +350,6 @@ struct ResolverObject {
const GRFFile *grffile; ///< GRFFile the resolved SpriteGroup belongs to
union {
struct {
const struct Vehicle *self;
const struct Vehicle *parent;
EngineID self_type;
bool info_view; ///< Indicates if the item is being drawn in an info window
} vehicle;
} u;
uint32 (*GetRandomBits)(const struct ResolverObject*);
uint32 (*GetTriggers)(const struct ResolverObject*);
void (*SetTriggers)(const struct ResolverObject*, int);