don't render rotscaled bitmap sprites with alpha==0

This commit is contained in:
zeromus 2011-03-06 22:03:06 +00:00
parent 9897125f9a
commit 782a15da11
1 changed files with 4 additions and 0 deletions

View File

@ -1656,6 +1656,10 @@ void GPU::_spriteRender(u8 * dst, u8 * dst_alpha, u8 * typeTab, u8 * prioTab)
// Rotozoomed direct color
else if(spriteInfo->Mode == 3)
{
//transparent (i think, dont bother to render?) if alpha is 0
if(spriteInfo->PaletteIndex == 0)
continue;
srcadr = bmp_sprite_address(this,spriteInfo,sprSize,0);
for(j = 0; j < lg; ++j, ++sprX)