mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
fix protocol 860 death, fix progress bar
This commit is contained in:
@@ -66,6 +66,7 @@ void Game::processLoginError(const std::string& error)
|
||||
void Game::processConnectionError(const boost::system::error_code& error)
|
||||
{
|
||||
// connection errors only have meaning if we still have a protocol
|
||||
dump << "disconnected: connection error = " << error.message();
|
||||
if(m_protocolGame) {
|
||||
if(error != asio::error::eof)
|
||||
g_lua.callGlobalField("Game", "onConnectionError", error.message());
|
||||
|
@@ -307,7 +307,9 @@ void ProtocolGame::parsePing(InputMessage&)
|
||||
|
||||
void ProtocolGame::parseDeath(InputMessage& msg)
|
||||
{
|
||||
#if PROTOCOL==862
|
||||
msg.getU8(); // 100 is a fair death. < 100 is a unfair death.
|
||||
#endif
|
||||
g_game.processDeath();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user