Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created December 19, 2013 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/8045691 to your computer and use it in GitHub Desktop.
Save kahrl/8045691 to your computer and use it in GitHub Desktop.
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