Do not kick the player from the server on game admin timeout - just remove the player from the game.

This commit is contained in:
lotodore
2008-03-07 21:45:26 +00:00
parent 4bc902b229
commit d8d816f8dc
5 changed files with 22 additions and 7 deletions
+7
View File
@@ -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;