From: Holger Schemel Date: Fri, 17 Feb 2017 22:20:31 +0000 (+0100) Subject: added function to get graphics for MM style game elements X-Git-Tag: 4.1.0.0~219 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=29e6de4784938ea9f21d47edc97bbf971ca66d83;p=rocksndiamonds.git added function to get graphics for MM style game elements --- diff --git a/src/engines.h b/src/engines.h index f7b00018..03baeb8d 100644 --- a/src/engines.h +++ b/src/engines.h @@ -58,7 +58,10 @@ boolean isNextAnimationFrame_SP(int, int); void SetDrawtoField(int); +int el2img_mm(int); + void getGraphicSource(int, int, Bitmap **, int *, int *); +void getMiniGraphicSource(int, Bitmap **, int *, int *); void getSizedGraphicSource(int, int, int, Bitmap **, int *, int *); diff --git a/src/tools.c b/src/tools.c index fb1fc5ed..151fd94b 100644 --- a/src/tools.c +++ b/src/tools.c @@ -7302,6 +7302,11 @@ int get_next_element(int element) } } +int el2img_mm(int element_mm) +{ + return el2img(map_element_MM_to_RND(element_mm)); +} + int el_act_dir2img(int element, int action, int direction) { element = GFX_ELEMENT(element);