summaryrefslogtreecommitdiffstats
path: root/pacman-c++/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/server.cpp')
-rw-r--r--pacman-c++/server.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/pacman-c++/server.cpp b/pacman-c++/server.cpp
index 4656238..18ec8fa 100644
--- a/pacman-c++/server.cpp
+++ b/pacman-c++/server.cpp
@@ -9,6 +9,7 @@
9Server::Server(QWidget *parent) 9Server::Server(QWidget *parent)
10 : SceneHolder(parent) 10 : SceneHolder(parent)
11{ 11{
12
12 qDebug() << "waiting for clients"; 13 qDebug() << "waiting for clients";
13 waitForClientConnections(); 14 waitForClientConnections();
14 qDebug() << "clients connected"; 15 qDebug() << "clients connected";
@@ -193,6 +194,7 @@ void Server::keyPressUpdate()
193 } 194 }
194} 195}
195 196
197
196int main(int argc, char ** argv) 198int main(int argc, char ** argv)
197{ 199{
198 GOOGLE_PROTOBUF_VERIFY_VERSION; 200 GOOGLE_PROTOBUF_VERIFY_VERSION;
@@ -203,7 +205,7 @@ int main(int argc, char ** argv)
203 205
204 qsrand(QTime(0, 0, 0).secsTo(QTime::currentTime())); 206 qsrand(QTime(0, 0, 0).secsTo(QTime::currentTime()));
205 207
208 Constants::server = true;
206 Server Server; 209 Server Server;
207
208 return app.exec(); 210 return app.exec();
209} 211}