(svn r625) Almost complete support for deterministic variational vehicle spritegroups. (pasky)

This commit is contained in:
tron
2004-11-15 11:54:35 +00:00
parent 57c472e093
commit 2f35fea097
3 changed files with 153 additions and 22 deletions

View File

@@ -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