Do not kick the player from the server on game admin timeout - just remove the player from the game.
This commit is contained in:
@@ -97,6 +97,7 @@ using namespace std;
|
||||
#define NET_REMOVED_GAME_FULL 0x0001
|
||||
#define NET_REMOVED_GAME_ALREADY_RUNNING 0x0002
|
||||
#define NET_REMOVED_KICKED 0x0003
|
||||
#define NET_REMOVED_TIMEOUT 0x0004
|
||||
#define NET_REMOVED_OTHER_REASON 0xFFFF
|
||||
|
||||
// Reasons for timeout warning
|
||||
@@ -4268,6 +4269,9 @@ NetPacketRemovedFromGame::SetData(const NetPacketRemovedFromGame::Data &inData)
|
||||
case NTF_NET_REMOVED_KICKED :
|
||||
tmpData->removeReason = htons(NET_REMOVED_KICKED);
|
||||
break;
|
||||
case NTF_NET_REMOVED_TIMEOUT :
|
||||
tmpData->removeReason = htons(NET_REMOVED_TIMEOUT);
|
||||
break;
|
||||
default :
|
||||
tmpData->removeReason = htons(NET_REMOVED_OTHER_REASON);
|
||||
break;
|
||||
@@ -4297,6 +4301,9 @@ NetPacketRemovedFromGame::GetData(NetPacketRemovedFromGame::Data &outData) const
|
||||
case NET_REMOVED_KICKED :
|
||||
outData.removeReason = NTF_NET_REMOVED_KICKED;
|
||||
break;
|
||||
case NET_REMOVED_TIMEOUT :
|
||||
outData.removeReason = NTF_NET_REMOVED_TIMEOUT;
|
||||
break;
|
||||
default :
|
||||
outData.removeReason = NTF_NET_INTERNAL;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user