mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
Other minor fixes
This commit is contained in:
@@ -174,9 +174,16 @@ void ThingType::draw(const Point& dest, float scaleFactor, int layer, int xPatte
|
||||
Rect screenRect(dest + (textureOffset - m_displacement - (m_size.toPoint() - Point(1, 1)) * 32) * scaleFactor,
|
||||
textureRect.size() * scaleFactor);
|
||||
|
||||
g_painter->setOpacity(m_opacity);
|
||||
bool useOpacity = m_opacity < 1.0f;
|
||||
|
||||
if(useOpacity)
|
||||
g_painter->setColor(Color(1.0f,1.0f,1.0f,m_opacity));
|
||||
|
||||
g_painter->drawTexturedRect(screenRect, texture, textureRect);
|
||||
|
||||
if(useOpacity)
|
||||
g_painter->setColor(Color::white);
|
||||
|
||||
if(lightView && hasLight()) {
|
||||
Light light = getLight();
|
||||
if(light.intensity > 0)
|
||||
|
Reference in New Issue
Block a user