X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftoons.c;h=264cda431781b41a8d5eb34ccc3b344addcf1e4f;hb=a7c06161253796a30a0237a7f5a044f459c8cf35;hp=2a233e4cbb847f1e3c101bfd7d78ad60c5f6cc4d;hpb=28514fc1f1f57cd280c32fba47eed6893caa3641;p=rocksndiamonds.git diff --git a/src/libgame/toons.c b/src/libgame/toons.c index 2a233e4c..264cda43 100644 --- a/src/libgame/toons.c +++ b/src/libgame/toons.c @@ -149,9 +149,6 @@ void DrawAnim(Bitmap *toon_bitmap, GC toon_clip_gc, buffer_x, buffer_y); #endif - if (width == 0 || height == 0) - return; - /* correct values to avoid off-screen blitting (start position) */ if (pad_dest_x < screen_info.startx) { @@ -189,13 +186,13 @@ void DrawAnim(Bitmap *toon_bitmap, GC toon_clip_gc, boolean AnimateToon(int toon_nr, boolean restart) { - static unsigned long animation_frame_counter = 0; + static unsigned int animation_frame_counter = 0; static int pos_x = 0, pos_y = 0; static int delta_x = 0, delta_y = 0; static int frame = 0; static boolean horiz_move, vert_move; - static unsigned long anim_delay = 0; - static unsigned long anim_delay_value = 0; + static unsigned int anim_delay = 0; + static unsigned int anim_delay_value = 0; static int width,height; static int pad_x,pad_y; static int cut_x,cut_y; @@ -345,8 +342,8 @@ boolean AnimateToon(int toon_nr, boolean restart) void HandleAnimation(int mode) { - static unsigned long animstart_delay = -1; - static unsigned long animstart_delay_value = 0; + static unsigned int animstart_delay = -1; + static unsigned int animstart_delay_value = 0; static boolean anim_running = FALSE; static boolean anim_restart = TRUE; static boolean reset_delay = TRUE;