fix possible draw bug
This commit is contained in:
parent
d931b03fed
commit
444d3a4fcb
|
@ -84,8 +84,8 @@ void Tile::draw(const Point& dest, float scaleFactor, int drawFlags)
|
||||||
if(redrawPreviousTopH > 0 || redrawPreviousTopW > 0) {
|
if(redrawPreviousTopH > 0 || redrawPreviousTopW > 0) {
|
||||||
int topRedrawFlags = drawFlags & (Otc::DrawCreatures | Otc::DrawEffects | Otc::DrawOnTop | Otc::DrawAnimations);
|
int topRedrawFlags = drawFlags & (Otc::DrawCreatures | Otc::DrawEffects | Otc::DrawOnTop | Otc::DrawAnimations);
|
||||||
if(topRedrawFlags) {
|
if(topRedrawFlags) {
|
||||||
for(int y=-redrawPreviousTopH;y<=0;++y) {
|
for(int x=-redrawPreviousTopW;x<=0;++x) {
|
||||||
for(int x=-redrawPreviousTopW;x<=0;++x) {
|
for(int y=-redrawPreviousTopH;y<=0;++y) {
|
||||||
if(x == 0 && y == 0)
|
if(x == 0 && y == 0)
|
||||||
continue;
|
continue;
|
||||||
const TilePtr& tile = g_map.getTile(m_position.translated(x,y));
|
const TilePtr& tile = g_map.getTile(m_position.translated(x,y));
|
||||||
|
|
Loading…
Reference in New Issue