1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 21:19:10 +00:00

(svn r23332) -Fix (r23316): Length of transparent pixels could exceed a byte. (frosch)

This commit is contained in:
2011-11-26 13:36:38 +00:00
parent a9bdd04072
commit cd6249dfc5

View File

@@ -182,7 +182,7 @@ Sprite *Blitter_8bppOptimized::Encode(SpriteLoader::Sprite *sprite, AllocatorPro
count_dst = NULL;
}
/* As long as we find transparency bytes, keep counting */
if (colour == 0) {
if (colour == 0 && trans != 255) {
last_colour = 0;
trans++;
continue;