mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 12:49:47 +01:00
add command completion to console
This commit is contained in:
@@ -183,9 +183,11 @@ void Graphics::drawRepeatedTexturedRect(const Rect& screenCoords,
|
||||
if(screenCoords.isEmpty() || texture->getId() == 0 || textureCoords.isEmpty())
|
||||
return;
|
||||
|
||||
bool mustStopDrawing = false;
|
||||
if(!m_drawing) {
|
||||
bindTexture(texture);
|
||||
startDrawing();
|
||||
mustStopDrawing = true;
|
||||
}
|
||||
|
||||
// render many repeated texture rects
|
||||
@@ -212,7 +214,7 @@ void Graphics::drawRepeatedTexturedRect(const Rect& screenCoords,
|
||||
}
|
||||
}
|
||||
|
||||
if(!m_drawing)
|
||||
if(mustStopDrawing)
|
||||
stopDrawing();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user