Started making Tux a single sprite again. Still missing: FireTux, IceTux
[supertux.git] / src / video / sdl_texture.cpp
index b5b6dc6..2164550 100644 (file)
@@ -483,7 +483,10 @@ namespace
             semitransparent++;
             squaredalphasum += alpha * alpha;
           }
-          colors[((red & 0xf0) << 4) | (green & 0xf0) | ((blue & 0xf0) >> 4)] = true;
+          if(alpha != 0)
+          {
+            colors[((red & 0xf0) << 4) | (green & 0xf0) | ((blue & 0xf0) >> 4)] = true;
+          }
         }
       }
       if(SDL_MUSTLOCK(src))