X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=60fa3fe9b6c20bb79283fe22d558d6b96095f472;hb=23c658debac513b4ab7e2d1c0f5a8cc011f6927b;hp=51014b9a410b139d742773a2b22a1865e42671c9;hpb=240269d614d12d0612cc0764589e6798378e2b8c;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 51014b9a..60fa3fe9 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1343,10 +1343,20 @@ void DrawMiniElementOrWall(int sx, int sy, int scroll_x, int scroll_y) if (x < -1 || x > lev_fieldx || y < -1 || y > lev_fieldy) DrawMiniElement(sx, sy, EL_LEERRAUM); - else if (x == -1 || x == lev_fieldx || y == -1 || y == lev_fieldy) - DrawMiniElement(sx, sy, EL_BETON); - else + else if (x > -1 && x < lev_fieldx && y > -1 && y < lev_fieldy) DrawMiniElement(sx, sy, Feld[x][y]); + else if (x == -1 && y == -1) + DrawMiniGraphic(sx, sy, GFX_STEEL_UPPER_LEFT); + else if (x == lev_fieldx && y == -1) + DrawMiniGraphic(sx, sy, GFX_STEEL_UPPER_RIGHT); + else if (x == -1 && y == lev_fieldy) + DrawMiniGraphic(sx, sy, GFX_STEEL_LOWER_LEFT); + else if (x == lev_fieldx && y == lev_fieldy) + DrawMiniGraphic(sx, sy, GFX_STEEL_LOWER_RIGHT); + else if (x == -1 || x == lev_fieldx) + DrawMiniGraphic(sx, sy, GFX_STEEL_VERTICAL); + else if (y == -1 || y == lev_fieldy) + DrawMiniGraphic(sx, sy, GFX_STEEL_HORIZONTAL); } void DrawMicroElement(int xpos, int ypos, int element) @@ -1530,7 +1540,10 @@ void DrawMicroLevel(int xpos, int ypos, boolean restart) } /* redraw micro level label, if needed */ - if (DelayReached(&label_delay, MICROLEVEL_LABEL_DELAY)) + if (strcmp(level.name, NAMELESS_LEVEL_NAME) != 0 && + strcmp(level.author, ANONYMOUS_NAME) != 0 && + strcmp(level.author, leveldir[leveldir_nr].name) != 0 && + DelayReached(&label_delay, MICROLEVEL_LABEL_DELAY)) { label_counter = (label_counter + 1) % 23; label_state = (label_counter >= 0 && label_counter <= 7 ? 1 :