missing param

This commit is contained in:
Eduardo Bart 2011-08-19 09:32:08 -03:00
parent c6dd25ed99
commit 66e58c5914
2 changed files with 2 additions and 2 deletions

View File

@ -185,10 +185,11 @@ void Creature::draw(int x, int y)
outfitColorId = m_outfit.feet; outfitColorId = m_outfit.feet;
g_graphics.bindColor(outfitColors[outfitColorId]); g_graphics.bindColor(outfitColors[outfitColorId]);
internalDraw(x, y, 1, m_direction, 0, 0, anim); internalDraw(x, y, 1, m_direction, 0, 0, anim, (SpriteMask)mask);
} }
g_graphics.bindBlendFunc(BLEND_NORMAL); g_graphics.bindBlendFunc(BLEND_NORMAL);
g_graphics.bindColor(Color::white);
} }
} }

View File

@ -27,7 +27,6 @@ void Thing::internalDraw(int x, int y, int blendframes, int xdiv, int ydiv, int
TexturePtr spriteTex; TexturePtr spriteTex;
if(mask == SpriteMaskNone) { if(mask == SpriteMaskNone) {
spriteTex = g_sprites.getSpriteTexture(spriteId); spriteTex = g_sprites.getSpriteTexture(spriteId);
g_graphics.bindColor(Color::white);
} else } else
spriteTex = g_sprites.getSpriteMask(spriteId, mask); spriteTex = g_sprites.getSpriteMask(spriteId, mask);