projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20020910-1-src
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index 8a0ca336226e5eec26493ca43ff8d8a79bd42dc1..0ab4eec741a9909cc521ff92f9c0a13dd3073de0 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-693,6
+693,7
@@
static int getGraphicAnimationPhase(int frames, int delay, int mode)
if (mode == ANIM_OSCILLATE)
{
int max_anim_frames = 2 * frames - 2;
if (mode == ANIM_OSCILLATE)
{
int max_anim_frames = 2 * frames - 2;
+
phase = (FrameCounter % (delay * max_anim_frames)) / delay;
phase = (phase < frames ? phase : max_anim_frames - phase);
}
phase = (FrameCounter % (delay * max_anim_frames)) / delay;
phase = (phase < frames ? phase : max_anim_frames - phase);
}