added raw x/y screen position values for global animations
authorHolger Schemel <info@artsoft.org>
Wed, 3 Feb 2016 19:09:42 +0000 (20:09 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 3 Feb 2016 19:09:42 +0000 (20:09 +0100)
src/init.c
src/main.h

index f85660d1e6a5898b67b8ba6d3f3b756125b29f31..e33a5adb8e7037d22a2fef9be46d92db6f3760ce 100644 (file)
@@ -1346,6 +1346,8 @@ static void set_graphic_parameters_ext(int graphic, int *parameter,
   g->step_delay   = parameter[GFX_ARG_STEP_DELAY];
   g->direction    = parameter[GFX_ARG_DIRECTION];
   g->position     = parameter[GFX_ARG_POSITION];
+  g->x            = parameter[GFX_ARG_X];      // (may be uninitialized,
+  g->y            = parameter[GFX_ARG_Y];      // unlike src_x and src_y)
 
   /* this is only used for drawing font characters */
   g->draw_xoffset = parameter[GFX_ARG_DRAW_XOFFSET];
index 3e58df38a601d58203f83bc32086445f0699e0e8..092a47e71b5bfbf8a0d44827a9b951b373ef3823 100644 (file)
@@ -2826,6 +2826,8 @@ struct GraphicInfo
   int step_delay;              /* optional step delay of toon animations */
   int direction;               /* optional move direction of toon animations */
   int position;                        /* optional draw position of toon animations */
+  int x;                       /* optional draw position of toon animations */
+  int y;                       /* optional draw position of toon animations */
 
   int draw_xoffset;            /* optional offset for drawing font chars */
   int draw_yoffset;            /* optional offset for drawing font chars */