Send a different error if a user is permanently blocked.

This commit is contained in:
lotodore
2010-07-14 15:27:06 +00:00
parent a68a98f739
commit 176dbe1d4f
6 changed files with 37 additions and 21 deletions
+6
View File
@@ -222,6 +222,9 @@ NetPacket::NetErrorToGameError(long netErrorReason)
case errorReason_errorBannedFromServer :
retVal = ERR_NET_PLAYER_BANNED;
break;
case errorReason_errorBlockedByServer :
retVal = ERR_NET_PLAYER_BLOCKED;
break;
case errorReason_errorSessionTimeout :
retVal = ERR_NET_SESSION_TIMED_OUT;
break;
@@ -271,6 +274,9 @@ NetPacket::GameErrorToNetError(int gameErrorReason)
case ERR_NET_PLAYER_KICKED :
retVal = errorReason_errorKickedFromServer;
break;
case ERR_NET_PLAYER_BLOCKED :
retVal = errorReason_errorBlockedByServer;
break;
case ERR_NET_PLAYER_BANNED :
retVal = errorReason_errorBannedFromServer;
break;