X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=972d7c23c071984ecfd9dd21cd38d7f357d5722d;hb=f70652c4a2f2e45d0f4ed7baf62e2311e66d4b13;hp=824327cc2cecd8cc85c8d33dc37e0894665af2ba;hpb=67758fda340e825f188fc6a4caad03381bf031dc;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 824327cc..972d7c23 100644 --- a/src/tools.c +++ b/src/tools.c @@ -543,7 +543,10 @@ void DrawPlayer(struct PlayerInfo *player) phase = 7 - phase; } - DrawGraphicThruMask(sx, sy, graphic + phase); + if (game_emulation == EMU_SUPAPLEX) + DrawGraphic(sx, sy, GFX_SP_DISK_RED); + else + DrawGraphicThruMask(sx, sy, graphic + phase); } if ((last_jx != jx || last_jy != jy) && @@ -1202,7 +1205,12 @@ void DrawScreenField(int x, int y) if (!IN_LEV_FIELD(ux, uy)) { - DrawScreenElement(x, y, EL_BETON); + if (ux < -1 || ux > lev_fieldx || uy < -1 || uy > lev_fieldy) + element = EL_LEERRAUM; + else + element = BorderElement; + + DrawScreenElement(x, y, element); return; } @@ -1362,10 +1370,8 @@ void DrawMiniLevel(int scroll_x, int scroll_y) { int x,y; - ClearWindow(); - - for(x=0; x<2*SCR_FIELDX; x++) - for(y=0; y<2*SCR_FIELDY; y++) + for(x=0; x= -1 && x < lev_fieldx+1 && y >= -1 && y < lev_fieldy+1) DrawMicroElement(xpos + x * MICRO_TILEX, ypos + y * MICRO_TILEY, - EL_BETON); + BorderElement); XFillRectangle(display, drawto,gc, SX, MICROLABEL_YPOS, SXSIZE, FONT4_YSIZE); @@ -1953,6 +1962,7 @@ int el2gfx(int element) case EL_PFEIL_U: return GFX_PFEIL_U; case EL_SPEED_PILL: return GFX_SPEED_PILL; case EL_SP_TERMINAL_ACTIVE: return GFX_SP_TERMINAL; + case EL_SP_BUG_ACTIVE: return GFX_SP_BUG_ACTIVE; default: {