projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
adab6bb
)
added raw x/y screen position values for global animations
author
Holger Schemel
<info@artsoft.org>
Wed, 3 Feb 2016 19:09:42 +0000
(20:09 +0100)
committer
Holger Schemel
<info@artsoft.org>
Wed, 3 Feb 2016 19:09:42 +0000
(20:09 +0100)
src/init.c
patch
|
blob
|
history
src/main.h
patch
|
blob
|
history
diff --git
a/src/init.c
b/src/init.c
index f85660d1e6a5898b67b8ba6d3f3b756125b29f31..e33a5adb8e7037d22a2fef9be46d92db6f3760ce 100644
(file)
--- 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->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];
/* 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 3e58df38a601d58203f83bc32086445f0699e0e8..092a47e71b5bfbf8a0d44827a9b951b373ef3823 100644
(file)
--- 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 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 */
int draw_xoffset; /* optional offset for drawing font chars */
int draw_yoffset; /* optional offset for drawing font chars */