Enabling versions 7.8 to 8.0

master
Sam 10 years ago
parent d53f4dfa1e
commit 17c4d59b15

@ -48,12 +48,13 @@ end
function g_game.getSupportedClients() function g_game.getSupportedClients()
return { return {
760, 770, 772, 810, 811, 840, 842, 760, 770, 772, 780, 781, 782, 790,
850, 853, 854, 860, 861, 862, 870, 792, 800, 810, 811, 840, 842, 850,
910, 940, 944, 953, 954, 960, 961, 853, 854, 860, 861, 862, 870, 910,
963, 970, 980, 981, 982, 983, 984, 940, 944, 953, 954, 960, 961, 963,
985, 986, 1001, 1002, 1010, 1020, 970, 980, 981, 982, 983, 984, 985,
1021, 1022 986, 1001, 1002, 1010, 1020, 1021,
1022
} }
end end

@ -1445,7 +1445,7 @@ void Game::setProtocolVersion(int version)
if(isOnline()) if(isOnline())
stdext::throw_exception("Unable to change protocol version while online"); 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)); stdext::throw_exception(stdext::format("Protocol version %d not supported", version));
m_features.reset(); m_features.reset();
@ -1553,7 +1553,7 @@ void Game::setClientVersion(int version)
if(isOnline()) if(isOnline())
stdext::throw_exception("Unable to change client version while online"); 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)); stdext::throw_exception(stdext::format("Client version %d not supported", version));
m_clientVersion = version; m_clientVersion = version;

@ -59,7 +59,7 @@ void UIItem::drawSelf(Fw::DrawPane drawPane)
m_item->draw(dest, scaleFactor, true); m_item->draw(dest, scaleFactor, true);
if(m_font && (m_item->isStackable() || m_item->isChargeable()) && m_item->getCountOrSubType() > 1) { 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)); g_painter->setColor(Color(231, 231, 231));
m_font->drawText(count, Rect(m_rect.topLeft(), m_rect.bottomRight() - Point(3, 0)), Fw::AlignBottomRight); m_font->drawText(count, Rect(m_rect.topLeft(), m_rect.bottomRight() - Point(3, 0)), Fw::AlignBottomRight);
} }

Loading…
Cancel
Save