projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20030111-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
toons.c
diff --git
a/src/libgame/toons.c
b/src/libgame/toons.c
index 84a21c2569d2ce89cb8ebc537eac39aec2d7d329..c067d2d460ee1e9fd1d55308b671216780114bcb 100644
(file)
--- a/
src/libgame/toons.c
+++ b/
src/libgame/toons.c
@@
-78,7
+78,8
@@
void InitToonScreen(Bitmap *save_buffer,
boolean (*redraw_needed_function)(void),
struct ToonInfo *toons, int num_toons,
int startx, int starty,
boolean (*redraw_needed_function)(void),
struct ToonInfo *toons, int num_toons,
int startx, int starty,
- int width, int height)
+ int width, int height,
+ int frame_delay_value)
{
screen_info.save_buffer = save_buffer;
screen_info.update_function = update_function;
{
screen_info.save_buffer = save_buffer;
screen_info.update_function = update_function;
@@
-90,6
+91,7
@@
void InitToonScreen(Bitmap *save_buffer,
screen_info.starty = starty;
screen_info.width = width;
screen_info.height = height;
screen_info.starty = starty;
screen_info.width = width;
screen_info.height = height;
+ screen_info.frame_delay_value = frame_delay_value;
}
void DrawAnim(Bitmap *toon_bitmap, GC toon_clip_gc,
}
void DrawAnim(Bitmap *toon_bitmap, GC toon_clip_gc,
@@
-148,7
+150,7
@@
boolean AnimateToon(int toon_nr, boolean restart)
{
horiz_move = (anim->direction & (ANIMDIR_LEFT | ANIMDIR_RIGHT));
vert_move = (anim->direction & (ANIMDIR_UP | ANIMDIR_DOWN));
{
horiz_move = (anim->direction & (ANIMDIR_LEFT | ANIMDIR_RIGHT));
vert_move = (anim->direction & (ANIMDIR_UP | ANIMDIR_DOWN));
- anim_delay_value = anim->move_delay;
+ anim_delay_value = anim->move_delay
* screen_info.frame_delay_value
;
frame = getAnimationFrame(anim->anim_frames, anim->anim_delay,
anim->anim_mode, anim->start_frame,
frame = getAnimationFrame(anim->anim_frames, anim->anim_delay,
anim->anim_mode, anim->start_frame,