X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=3d3930dfb736e3f68b4ab09f0471c30541b85935;hb=bca0a1d2e0c7d05f0dfb1d1c62c85715c63652ba;hp=61320d3c2f1528ad25539ab8166ea3e164105fff;hpb=a672ed603b77a6119d35890793b922a7ec82099e;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 61320d3c..3d3930df 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1941,7 +1941,13 @@ void DrawLevel() { int x,y; +#if 1 + SetMainBackgroundImage(IMG_BACKGROUND_PLAYING); + SetDrawBackgroundMask(REDRAW_FIELD); +#else SetDrawBackgroundMask(REDRAW_NONE); +#endif + ClearField(); for (x = BX1; x <= BX2; x++) @@ -3198,6 +3204,11 @@ unsigned int MoveDoor(unsigned int door_state) door_state &= ~DOOR_CLOSE_ALL; } +#if 1 + if (game_status == GAME_MODE_EDITOR) + door_state |= DOOR_NO_DELAY; +#endif + if (door_state & DOOR_ACTION) { boolean handle_door_1 = (door_state & DOOR_ACTION_1);