diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 9a669661..df355e66 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -417,6 +417,19 @@ void Game::logic() // Handle network stuff mNetwork->flush(); mNetwork->dispatchMessages(); + + if (!mNetwork->isConnected()) + { + if (!exitConfirm) + { + exitConfirm = new + ConfirmDialog("Network Error", + "There was a network error, the program will now quit"); + exitConfirm->addActionListener(&exitListener); + } + + exitConfirm->requestMoveToTop(); + } } } |