summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2009-11-02 21:45:44 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2009-11-02 21:45:44 +0100
commita650c230152fb025b29a56ddb31eab40edd291d1 (patch)
tree739fec507c5cb79feaa502d551a76e1a038f1550 /src/main.cpp
parentacc7d95ed30a4b1896ac888c1b1fd83c49785552 (diff)
downloadmana-a650c230152fb025b29a56ddb31eab40edd291d1.tar.gz
mana-a650c230152fb025b29a56ddb31eab40edd291d1.tar.bz2
mana-a650c230152fb025b29a56ddb31eab40edd291d1.tar.xz
mana-a650c230152fb025b29a56ddb31eab40edd291d1.zip
Got rid of GameHandler::clear
It was just forwarding to disconnect().
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9c4aadac..865588ff 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -934,7 +934,7 @@ int main(int argc, char *argv[])
if (state == STATE_SWITCH_LOGIN && oldstate == STATE_GAME)
{
- Net::getGameHandler()->clear();
+ Net::getGameHandler()->disconnect();
}
if (state != oldstate)
@@ -1268,7 +1268,7 @@ int main(int argc, char *argv[])
logger->log("State: SWITCH CHARACTER");
// Done with game
- Net::getGameHandler()->clear();
+ Net::getGameHandler()->disconnect();
Net::getCharHandler()->getCharacters();
break;
@@ -1299,7 +1299,7 @@ int main(int argc, char *argv[])
currentDialog = new OkDialog(_("Error"), errorMessage);
currentDialog->addActionListener(&errorListener);
currentDialog = NULL; // OkDialog deletes itself
- Net::getGameHandler()->clear();
+ Net::getGameHandler()->disconnect();
break;
default: