mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 20:43:26 +02:00
Enabling versions 7.8 to 8.0
This commit is contained in:
@@ -1445,7 +1445,7 @@ void Game::setProtocolVersion(int version)
|
||||
if(isOnline())
|
||||
stdext::throw_exception("Unable to change protocol version while online");
|
||||
|
||||
if(version != 0 && (version < 760 || (version > 772 && version < 810) || version > 1022))
|
||||
if(version != 0 && (version < 760 || version > 1022))
|
||||
stdext::throw_exception(stdext::format("Protocol version %d not supported", version));
|
||||
|
||||
m_features.reset();
|
||||
@@ -1553,7 +1553,7 @@ void Game::setClientVersion(int version)
|
||||
if(isOnline())
|
||||
stdext::throw_exception("Unable to change client version while online");
|
||||
|
||||
if(version != 0 && (version < 760 || (version > 772 && version < 810) || version > 1022))
|
||||
if(version != 0 && (version < 760 || version > 1022))
|
||||
stdext::throw_exception(stdext::format("Client version %d not supported", version));
|
||||
|
||||
m_clientVersion = version;
|
||||
|
@@ -59,7 +59,7 @@ void UIItem::drawSelf(Fw::DrawPane drawPane)
|
||||
m_item->draw(dest, scaleFactor, true);
|
||||
|
||||
if(m_font && (m_item->isStackable() || m_item->isChargeable()) && m_item->getCountOrSubType() > 1) {
|
||||
std::string count = stdext::to_string(m_item->getCount());
|
||||
std::string count = stdext::to_string(m_item->getCountOrSubType());
|
||||
g_painter->setColor(Color(231, 231, 231));
|
||||
m_font->drawText(count, Rect(m_rect.topLeft(), m_rect.bottomRight() - Point(3, 0)), Fw::AlignBottomRight);
|
||||
}
|
||||
|
Reference in New Issue
Block a user