X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=2af73af732b1992e38fac21a3cc2b9b38436dfec;hb=a4eaa7fcd8ca604faeee50f049c441415aa4968c;hp=d800de9f61c72d4a5cd0cf676fc1eda09692d1dd;hpb=9091c797c4a3abb34ceb98d80a82ae7310708fbb;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index d800de9f..2af73af7 100644 --- a/src/init.c +++ b/src/init.c @@ -923,17 +923,17 @@ void InitElementInfo() }; #endif - int i, j, k; + int i, act, dir; - /* always start with reliable default values */ + /* set values to -1 to identify later as "uninitialized" values */ for(i=0; i 1) + new_graphic_info[i].anim_mode = ANIM_LOOP; else - new_graphic_info[i].anim_mode = ANIM_NORMAL; + new_graphic_info[i].anim_mode = ANIM_NONE; - /* additionally, animation can be either pingpong or pingpong2 layout */ - if (parameter[GFX_ARG_PINGPONG]) - new_graphic_info[i].anim_mode |= ANIM_PINGPONG; - else if (parameter[GFX_ARG_PINGPONG2]) - new_graphic_info[i].anim_mode |= ANIM_PINGPONG2; + /* set additional flag to play animation frames in reverse order */ + if (parameter[GFX_ARG_MODE_REVERSE]) + new_graphic_info[i].anim_mode |= ANIM_REVERSE; /* animation synchronized with global frame counter, not move position */ new_graphic_info[i].anim_global_sync = parameter[GFX_ARG_GLOBAL_SYNC];