diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 699314d30..7d881fa88 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1266,7 +1266,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input, server->step(dtime); // End condition - if(client.connectedAndInitialized()){ + if(client.getState() == LC_Init){ could_connect = true; break; } @@ -1373,7 +1373,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input, errorstream<<wide_to_narrow(error_message)<<std::endl; break; } - if(!client.connectedAndInitialized()){ + if(client.getState() < LC_Init){ error_message = L"Client disconnected"; errorstream<<wide_to_narrow(error_message)<<std::endl; break; |