X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=26ec6c22bf8f801bbba920c036e588cc5475c467;hb=8ed54ba814cb0a10e73cbc29c833f2c5d77e9907;hp=fb1e39494794714f2f81c23b556de38fdc12a3f1;hpb=78dc584e5e2a4afa8b5e5858a356f46a3880aee0;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index fb1e3949..26ec6c22 100644 --- a/src/tools.c +++ b/src/tools.c @@ -878,11 +878,16 @@ void DrawPlayer(struct PlayerInfo *player) else if (player_is_moving && IS_ACCESSIBLE_UNDER(last_element)) DrawLevelFieldThruMask(last_jx, last_jy); - /* ... and the field the player is entering */ - if (IS_ACCESSIBLE_INSIDE(element)) - DrawLevelField(jx, jy); - else if (IS_ACCESSIBLE_UNDER(element)) - DrawLevelFieldThruMask(jx, jy); +#if 1 + if (!player->is_pushing) +#endif + { + /* ... and the field the player is entering */ + if (IS_ACCESSIBLE_INSIDE(element)) + DrawLevelField(jx, jy); + else if (IS_ACCESSIBLE_UNDER(element)) + DrawLevelFieldThruMask(jx, jy); + } if (setup.direct_draw) { @@ -2889,6 +2894,11 @@ int el_dir2img(int element, int direction) return el_act_dir2img(element, ACTION_DEFAULT, direction); } +int el2baseimg(int element) +{ + return element_info[element].graphic[ACTION_DEFAULT]; +} + int el2img(int element) { element = GFX_ELEMENT(element);