X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=ab66bdf21921c5f72f565bc67fea60ec5f2cafbb;hb=72e44014938c9042261b67213a6cd37b7a17488f;hp=f0a2677636c8a7a18f2b576b1b5ba5da96aa89b8;hpb=7d76e4299f6171909990d2ba2f1f6a2b382d9cf3;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index f0a26776..ab66bdf2 100644 --- a/src/tools.c +++ b/src/tools.c @@ -749,15 +749,15 @@ void DrawPlayer(struct PlayerInfo *player) /* ----------------------------------------------------------------------- */ /* handle the field the player is leaving ... */ - if (player_is_moving && IS_PLAYER_INSIDE(last_element)) + if (player_is_moving && IS_ACCESSIBLE_INSIDE(last_element)) DrawLevelField(last_jx, last_jy); - else if (player_is_moving && IS_PLAYER_UNDER(last_element)) + else if (player_is_moving && IS_ACCESSIBLE_UNDER(last_element)) DrawLevelFieldThruMask(last_jx, last_jy); /* ... and the field the player is entering */ - if (IS_PLAYER_INSIDE(element)) + if (IS_ACCESSIBLE_INSIDE(element)) DrawLevelField(jx, jy); - else if (IS_PLAYER_UNDER(element)) + else if (IS_ACCESSIBLE_UNDER(element)) DrawLevelFieldThruMask(jx, jy); if (setup.direct_draw)