From f6f964c7295732d0a3afb225254080792b642a55 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Thu, 25 Dec 2008 23:00:35 +0000 Subject: [PATCH] Fixed bug with masking of rotated corpse images --- shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.c b/shared.c index 722cb53..3fd1966 100644 --- a/shared.c +++ b/shared.c @@ -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); }