diff options
author | tron <tron@openttd.org> | 2004-11-15 11:54:35 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-11-15 11:54:35 +0000 |
commit | 2f35fea0975fe5242d5383331aa2f16e9849135b (patch) | |
tree | 237d0fe88d9b9e72918861db823b6302db8c8a1c /sprite.h | |
parent | 57c472e093aad072d5c4113790dfafbca0f40fa6 (diff) | |
download | openttd-2f35fea0975fe5242d5383331aa2f16e9849135b.tar.xz |
(svn r625) Almost complete support for deterministic variational vehicle spritegroups. (pasky)
Diffstat (limited to 'sprite.h')
-rw-r--r-- | sprite.h | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -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 |