mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r23332) -Fix (r23316): Length of transparent pixels could exceed a byte. (frosch)
This commit is contained in:
parent
a9bdd04072
commit
cd6249dfc5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user