summaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-15 11:54:35 +0000
committertron <tron@openttd.org>2004-11-15 11:54:35 +0000
commit2f35fea0975fe5242d5383331aa2f16e9849135b (patch)
tree237d0fe88d9b9e72918861db823b6302db8c8a1c /sprite.h
parent57c472e093aad072d5c4113790dfafbca0f40fa6 (diff)
downloadopenttd-2f35fea0975fe5242d5383331aa2f16e9849135b.tar.xz
(svn r625) Almost complete support for deterministic variational vehicle spritegroups. (pasky)
Diffstat (limited to 'sprite.h')
-rw-r--r--sprite.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/sprite.h b/sprite.h
index ded9ce6a8..b75b30dd4 100644
--- a/sprite.h
+++ b/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