summaryrefslogtreecommitdiff
path: root/sprite.c
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.c
parent4761d92399fbbad03000f2da4d9e37f1305a820c (diff)
downloadopenttd-a2c42e06ed5aaca7d23d47bc0ee7f9279ae1a38c.tar.xz
(svn r2762) Simplify a loop, remove an unused variable and add many consts
Diffstat (limited to 'sprite.c')
-rw-r--r--sprite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sprite.c b/sprite.c
index 1b36fac49..1322a4649 100644
--- a/sprite.c
+++ b/sprite.c
@@ -9,7 +9,7 @@
#include "variables.h"
-SpriteGroup *EvalDeterministicSpriteGroup(DeterministicSpriteGroup *dsg, int value)
+SpriteGroup *EvalDeterministicSpriteGroup(const DeterministicSpriteGroup *dsg, int value)
{
int i;
@@ -64,7 +64,7 @@ int GetDeterministicSpriteValue(byte var)
}
}
-SpriteGroup *EvalRandomizedSpriteGroup(RandomizedSpriteGroup *rsg, byte random_bits)
+SpriteGroup *EvalRandomizedSpriteGroup(const RandomizedSpriteGroup *rsg, byte random_bits)
{
byte mask;
byte index;
@@ -78,7 +78,7 @@ SpriteGroup *EvalRandomizedSpriteGroup(RandomizedSpriteGroup *rsg, byte random_b
return &rsg->groups[index];
}
-byte RandomizedSpriteGroupTriggeredBits(RandomizedSpriteGroup *rsg,
+byte RandomizedSpriteGroupTriggeredBits(const RandomizedSpriteGroup *rsg,
byte triggers, byte *waiting_triggers)
{
byte match = rsg->triggers & (*waiting_triggers | triggers);