Fixed bug with masking of rotated corpse images

This commit is contained in:
Rob Pearce 2008-12-25 23:00:35 +00:00
parent 45bf5225ea
commit f6f964c729
1 changed files with 1 additions and 1 deletions

View File

@ -1859,7 +1859,7 @@ int loadimagesets(void) {
printf("error rotozooming sprite %d, deadimage %d\n",p,fr);
exit(1);
}
SDL_SetColorKey(tempimg, SDL_RLEACCEL, 0);
SDL_SetColorKey(tempimg, SDL_SRCCOLORKEY|SDL_RLEACCEL, SDL_MapRGB(screen->format, 0, 0, 0));
imageset[p].img[fr] = SDL_DisplayFormat(tempimg);
SDL_FreeSurface(tempimg);
}