summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-20 10:30:25 +0000
committertruelight <truelight@openttd.org>2007-06-20 10:30:25 +0000
commit636db862a5634c50d09833429118c34e841a24ac (patch)
treef977550235473d6d332457dffd9a14bbde1f8f55 /src/blitter
parentd7acd238ac20d63f1ac4116152330b652d5c79d8 (diff)
downloadopenttd-636db862a5634c50d09833429118c34e841a24ac.tar.xz
(svn r10234) -Fix r10233: make peter1138 happy
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/8bpp_optimized.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blitter/8bpp_optimized.cpp b/src/blitter/8bpp_optimized.cpp
index 2548fc6be..802ee8c82 100644
--- a/src/blitter/8bpp_optimized.cpp
+++ b/src/blitter/8bpp_optimized.cpp
@@ -151,7 +151,7 @@ Sprite *Blitter_8bppOptimized::Encode(SpriteLoader::Sprite *sprite, Blitter::All
if (rx == sprite->width) break;
}
- if (last_color == 0 || color == 0 || pixels > 250) {
+ if (last_color == 0 || color == 0 || pixels == 255) {
if (count_index != 0) {
/* Write how many non-transparent bytes we get */
temp_dst[count_index] = pixels;