Skip to content

Commit

Permalink
Fix connection lost info after offline training logout (opentibiabr#2611
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ArturKnopik authored Jun 7, 2021
1 parent 86db1be commit b775e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void ProtocolGame::logout(bool displayEffect, bool forced)
}
}

sendSessionEndInformation(forced ? SESSION_END_FORCECLOSE : SESSION_END_LOGOUT);
sendSessionEndInformation(SESSION_END_LOGOUT2);

g_game.removeCreature(player);
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils/enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -1070,10 +1070,10 @@ enum Webhook_Colors_t : uint32_t {
enum SessionEndInformations : uint8_t {
// I'm guessing unknown types are ban/protocol error or something
// but since there aren't any difference from logout should we care?
SESSION_END_LOGOUT,
SESSION_END_LOGOUT, // work only with standard logout
SESSION_END_UNK2,
SESSION_END_FORCECLOSE,
SESSION_END_UNK3,
SESSION_END_LOGOUT2, // work with standard logout and offline training logout
};

/**
Expand Down

0 comments on commit b775e75

Please sign in to comment.