diff options
| author | manuel <manuel@mausz.at> | 2011-04-14 20:37:53 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-14 20:37:53 +0200 |
| commit | 001f1d11e977d5586fe8496821b3a1e4bf76f10c (patch) | |
| tree | d0e344db1bd6791500f8973aad3aea26c350cedd /pacman-c++/server.cpp | |
| parent | 197708500f3adaaa50bc1a5a94aec0db8ea621e5 (diff) | |
| download | foop-001f1d11e977d5586fe8496821b3a1e4bf76f10c.tar.gz foop-001f1d11e977d5586fe8496821b3a1e4bf76f10c.tar.bz2 foop-001f1d11e977d5586fe8496821b3a1e4bf76f10c.zip | |
place actors at random positions
Diffstat (limited to 'pacman-c++/server.cpp')
| -rw-r--r-- | pacman-c++/server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pacman-c++/server.cpp b/pacman-c++/server.cpp index e09d126..a045cad 100644 --- a/pacman-c++/server.cpp +++ b/pacman-c++/server.cpp | |||
| @@ -23,8 +23,12 @@ bool Server::run() | |||
| 23 | if (!waitForClientConnections()) | 23 | if (!waitForClientConnections()) |
| 24 | return false; | 24 | return false; |
| 25 | 25 | ||
| 26 | qDebug() << "[Server] Creating map..."; | ||
| 26 | Transmission::map_t map = Util::createDemoMap(); | 27 | Transmission::map_t map = Util::createDemoMap(); |
| 28 | Util::placeActors(map, m_maxplayers, Color::order); | ||
| 29 | Util::makePoints(map); | ||
| 27 | updateMap(map); | 30 | updateMap(map); |
| 31 | sendUpdate(map); | ||
| 28 | Util::deleteMap(map); | 32 | Util::deleteMap(map); |
| 29 | map = NULL; | 33 | map = NULL; |
| 30 | 34 | ||
