forked from mirror/OpenTTD
(svn r625) Almost complete support for deterministic variational vehicle spritegroups. (pasky)
This commit is contained in:
15
sprite.h
15
sprite.h
@@ -101,10 +101,6 @@ struct DeterministicSpriteGroupRange {
|
||||
byte high;
|
||||
};
|
||||
|
||||
/* This is a temporary helper for SpriteGroup users not supporting variational
|
||||
* sprite groups yet - it just traverses those cowardly, always taking the
|
||||
* default choice until it hits a real sprite group, returning it. */
|
||||
static struct RealSpriteGroup *TriviallyGetRSG(struct SpriteGroup *sg);
|
||||
/* This takes value (probably of the variable specified in the group) and
|
||||
* chooses corresponding SpriteGroup accordingly to the given
|
||||
* DeterministicSpriteGroup. */
|
||||
@@ -112,15 +108,4 @@ struct SpriteGroup *EvalDeterministicSpriteGroup(struct DeterministicSpriteGroup
|
||||
/* Get value of a common deterministic SpriteGroup variable. */
|
||||
int GetDeterministicSpriteValue(byte var);
|
||||
|
||||
|
||||
|
||||
/**** Inline functions ****/
|
||||
|
||||
static INLINE struct RealSpriteGroup *TriviallyGetRSG(struct SpriteGroup *sg)
|
||||
{
|
||||
if (sg->type == SGT_REAL)
|
||||
return &sg->g.real;
|
||||
return TriviallyGetRSG(sg->g.determ.default_group);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user