From: Holger Schemel Date: Wed, 3 Feb 2016 19:09:42 +0000 (+0100) Subject: added raw x/y screen position values for global animations X-Git-Tag: 4.0.0.0-rc1~87 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=8d67b62445143c8f9fdde2cea730bfee49cc4271;p=rocksndiamonds.git added raw x/y screen position values for global animations --- diff --git a/src/init.c b/src/init.c index f85660d1..e33a5adb 100644 --- a/src/init.c +++ b/src/init.c @@ -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]; diff --git a/src/main.h b/src/main.h index 3e58df38..092a47e7 100644 --- a/src/main.h +++ b/src/main.h @@ -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 */