From 1a6c940ed9d7f6136da0e13148314072665342c5 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 10 May 2011 22:28:58 +0200 Subject: - refactorized audio once more: audio is now a plugin which gets loaded at runtime - thus server has no dependency to phonon any more - remove client dependency to qtnetwork - fix enet deinitialization on windows --- pacman-c++/client/client.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'pacman-c++/client/client.cpp') diff --git a/pacman-c++/client/client.cpp b/pacman-c++/client/client.cpp index 96ee59a..da505d1 100644 --- a/pacman-c++/client/client.cpp +++ b/pacman-c++/client/client.cpp @@ -272,14 +272,17 @@ int main(int argc, char **argv) qsrand(QTime(0, 0, 0).secsTo(QTime::currentTime())); + /* load sound */ AudioManager::self(); - Client client; - client.show(); - client.setWindowTitle(app.applicationName()); - + Client *client = new Client; + client->show(); + client->setWindowTitle(app.applicationName()); int ret = app.exec(); + /* delete client so that we'll disconnect from server before enet deinitialize */ + delete client; + enet_deinitialize(); /* Delete all global objects allocated by libprotobuf */ -- cgit v1.2.3