summaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-30 18:04:49 +0000
committertron <tron@openttd.org>2005-07-30 18:04:49 +0000
commita2c42e06ed5aaca7d23d47bc0ee7f9279ae1a38c (patch)
tree52eb08731454c2d01bd47aeef1de7f8886d6ad26 /sprite.h
parent4761d92399fbbad03000f2da4d9e37f1305a820c (diff)
downloadopenttd-a2c42e06ed5aaca7d23d47bc0ee7f9279ae1a38c.tar.xz
(svn r2762) Simplify a loop, remove an unused variable and add many consts
Diffstat (limited to 'sprite.h')
-rw-r--r--sprite.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sprite.h b/sprite.h
index b199509c3..5d21dcee5 100644
--- a/sprite.h
+++ b/sprite.h
@@ -140,17 +140,17 @@ struct DeterministicSpriteGroupRange {
/* This takes value (probably of the variable specified in the group) and
* chooses corresponding SpriteGroup accordingly to the given
* DeterministicSpriteGroup. */
-struct SpriteGroup *EvalDeterministicSpriteGroup(struct DeterministicSpriteGroup *dsg, int value);
+SpriteGroup *EvalDeterministicSpriteGroup(const DeterministicSpriteGroup *dsg, int value);
/* Get value of a common deterministic SpriteGroup variable. */
int GetDeterministicSpriteValue(byte var);
/* This takes randomized bitmask (probably associated with
* vehicle/station/whatever) and chooses corresponding SpriteGroup
* accordingly to the given RandomizedSpriteGroup. */
-SpriteGroup *EvalRandomizedSpriteGroup(RandomizedSpriteGroup *rsg, byte random_bits);
+SpriteGroup *EvalRandomizedSpriteGroup(const RandomizedSpriteGroup *rsg, byte random_bits);
/* Triggers given RandomizedSpriteGroup with given bitmask and returns and-mask
* of random bits to be reseeded, or zero if there were no triggers matched
* (then they are |ed to @waiting_triggers instead). */
-byte RandomizedSpriteGroupTriggeredBits(RandomizedSpriteGroup *rsg, byte triggers, byte *waiting_triggers);
+byte RandomizedSpriteGroupTriggeredBits(const RandomizedSpriteGroup *rsg, byte triggers, byte *waiting_triggers);
#endif