Created
December 19, 2013 20:27
-
-
Save kahrl/8045691 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game.cpp b/src/game.cpp | |
index 6f48870..8cf7da1 100644 | |
--- a/src/game.cpp | |
+++ b/src/game.cpp | |
@@ -1215,6 +1215,12 @@ void the_game( | |
break; | |
} | |
// Break conditions | |
+ if(client.accessDenied()){ | |
+ error_message = L"Access denied. Reason: " | |
+ +client.accessDeniedReason(); | |
+ errorstream<<wide_to_narrow(error_message)<<std::endl; | |
+ break; | |
+ } | |
if(!client.connectedAndInitialized()){ | |
error_message = L"Client disconnected"; | |
errorstream<<wide_to_narrow(error_message)<<std::endl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment