diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-11 12:09:04 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-11 12:09:04 +0200 |
| commit | 98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02 (patch) | |
| tree | ddd164d3339a067116f02f88314e2f57457bb1df /pacman-c++/mainwidget.cpp | |
| parent | 30c36b7549f8ae411f8eca4de144627331895a24 (diff) | |
| download | foop-98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02.tar.gz foop-98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02.tar.bz2 foop-98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02.zip | |
Added basic game logic
Diffstat (limited to 'pacman-c++/mainwidget.cpp')
| -rw-r--r-- | pacman-c++/mainwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pacman-c++/mainwidget.cpp b/pacman-c++/mainwidget.cpp index 6c4012e..df624da 100644 --- a/pacman-c++/mainwidget.cpp +++ b/pacman-c++/mainwidget.cpp | |||
| @@ -237,8 +237,8 @@ Color::Color MainWidget::connectToServer() | |||
| 237 | 237 | ||
| 238 | // connect to server | 238 | // connect to server |
| 239 | m_socket = new QTcpSocket(this); | 239 | m_socket = new QTcpSocket(this); |
| 240 | m_socket->connectToHost(srv, Constants::port); | 240 | m_socket->connectToHost(srv, Constants::Networking::port); |
| 241 | bool worked = m_socket->waitForConnected(Constants::connection_timeout); | 241 | bool worked = m_socket->waitForConnected(Constants::Networking::connection_timeout); |
| 242 | if (worked) | 242 | if (worked) |
| 243 | { | 243 | { |
| 244 | // additional init | 244 | // additional init |
