Fix blending of base and overlay terrains in the minimap.
This commit is contained in:
parent
1f9b17b954
commit
c8b33c083e
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue