From e54ccad07e256ba877bd41d70bd358bd0085bd1e Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 3 May 2011 01:00:51 +0200 Subject: - add endless wait for players - add eating order randomization --- pacman-c++/mainwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pacman-c++/mainwidget.cpp') diff --git a/pacman-c++/mainwidget.cpp b/pacman-c++/mainwidget.cpp index 8745bf9..49ddf7a 100644 --- a/pacman-c++/mainwidget.cpp +++ b/pacman-c++/mainwidget.cpp @@ -31,7 +31,7 @@ MainWidget::MainWidget(QWidget *parent) /* wait for the server to send the first map update (initial map) * WARNING: this will block the gui */ - m_socket->waitForReadyRead(); + m_socket->waitForReadyRead(-1); tick(); qDebug() << "[Connect] mycolor=" << m_scene->color(); -- cgit v1.2.3