(svn r2762) Simplify a loop, remove an unused variable and add many consts

This commit is contained in:
tron
2005-07-30 18:04:49 +00:00
parent 4761d92399
commit a2c42e06ed
3 changed files with 44 additions and 56 deletions

View File

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