X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=d310511196e7dc177f044c9317972abea7ab0467;hb=4b38930413ff066d2aa7a6ea9b06763251454119;hp=a2797839332a92db3510b692b4ddb87f35dae408;hpb=eecbe2a298826a3c32ca78b81b77491702ced84c;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index a2797839..d3105111 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1750,7 +1750,7 @@ void DrawLevelElementAnimationIfNeeded(int x, int y, int element) static int getPlayerGraphic(struct PlayerInfo *player, int move_dir) { - if (player->use_murphy_graphic) + if (player->use_murphy) { /* this works only because currently only one player can be "murphy" ... */ static int last_horizontal_dir = MV_LEFT; @@ -1769,7 +1769,7 @@ static int getPlayerGraphic(struct PlayerInfo *player, int move_dir) return graphic; } else - return el_act_dir2img(player->element_nr, player->GfxAction, move_dir); + return el_act_dir2img(player->artwork_element, player->GfxAction,move_dir); } static boolean equalGraphics(int graphic1, int graphic2)