diff options
| author | manuel <manuel@mausz.at> | 2011-05-10 22:28:58 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-05-10 22:28:58 +0200 |
| commit | 1a6c940ed9d7f6136da0e13148314072665342c5 (patch) | |
| tree | 467b259d966ea1ddf9f66440066f57cf3eed68c4 /pacman-c++/client/client.cpp | |
| parent | cc1bb779661217171418adb0ddbd1ce01815463b (diff) | |
| download | foop-1a6c940ed9d7f6136da0e13148314072665342c5.tar.gz foop-1a6c940ed9d7f6136da0e13148314072665342c5.tar.bz2 foop-1a6c940ed9d7f6136da0e13148314072665342c5.zip | |
- 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
Diffstat (limited to 'pacman-c++/client/client.cpp')
| -rw-r--r-- | pacman-c++/client/client.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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) | |||
| 272 | 272 | ||
| 273 | qsrand(QTime(0, 0, 0).secsTo(QTime::currentTime())); | 273 | qsrand(QTime(0, 0, 0).secsTo(QTime::currentTime())); |
| 274 | 274 | ||
| 275 | /* load sound */ | ||
| 275 | AudioManager::self(); | 276 | AudioManager::self(); |
| 276 | 277 | ||
| 277 | Client client; | 278 | Client *client = new Client; |
| 278 | client.show(); | 279 | client->show(); |
| 279 | client.setWindowTitle(app.applicationName()); | 280 | client->setWindowTitle(app.applicationName()); |
| 280 | |||
| 281 | int ret = app.exec(); | 281 | int ret = app.exec(); |
| 282 | 282 | ||
| 283 | /* delete client so that we'll disconnect from server before enet deinitialize */ | ||
| 284 | delete client; | ||
| 285 | |||
| 283 | enet_deinitialize(); | 286 | enet_deinitialize(); |
| 284 | 287 | ||
| 285 | /* Delete all global objects allocated by libprotobuf */ | 288 | /* Delete all global objects allocated by libprotobuf */ |
