Fixed bug with masking of rotated corpse images
This commit is contained in:
parent
45bf5225ea
commit
f6f964c729
2
shared.c
2
shared.c
|
@ -1859,7 +1859,7 @@ int loadimagesets(void) {
|
||||||
printf("error rotozooming sprite %d, deadimage %d\n",p,fr);
|
printf("error rotozooming sprite %d, deadimage %d\n",p,fr);
|
||||||
exit(1);
|
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);
|
imageset[p].img[fr] = SDL_DisplayFormat(tempimg);
|
||||||
SDL_FreeSurface(tempimg);
|
SDL_FreeSurface(tempimg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue