fix possible draw bug

This commit is contained in:
Eduardo Bart 2012-02-03 11:21:13 -02:00
parent d931b03fed
commit 444d3a4fcb
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ void Tile::draw(const Point& dest, float scaleFactor, int drawFlags)
if(redrawPreviousTopH > 0 || redrawPreviousTopW > 0) {
int topRedrawFlags = drawFlags & (Otc::DrawCreatures | Otc::DrawEffects | Otc::DrawOnTop | Otc::DrawAnimations);
if(topRedrawFlags) {
for(int y=-redrawPreviousTopH;y<=0;++y) {
for(int x=-redrawPreviousTopW;x<=0;++x) {
for(int y=-redrawPreviousTopH;y<=0;++y) {
if(x == 0 && y == 0)
continue;
const TilePtr& tile = g_map.getTile(m_position.translated(x,y));