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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user