Fix blending of base and overlay terrains in the minimap.

This commit is contained in:
Moritz Göbelbecker 2008-04-28 17:07:38 +00:00
parent 1f9b17b954
commit c8b33c083e

View file

@ -98,9 +98,9 @@ surface getMinimap(int w, int h, const gamemap& map, const viewpoint* vw)
r.x = 0;
r.y = 0;
SDL_BlitSurface(tile, NULL, combined, &r);
r.x = (tile->w - overlay->w)/2;
r.y = (tile->h - overlay->h)/2;
SDL_BlitSurface(overlay, NULL, combined, &r);
r.x = maximum(0, (tile->w - overlay->w)/2);
r.y = maximum(0, (tile->h - overlay->h)/2);
blit_surface(overlay, NULL, combined, &r);
tile = combined;
}