Initial handshake and network game start. Works with multiple clients. Not yet stable, because it is not thread-safe. GUI callbacks not complete yet (server dialog not updated).
This commit is contained in:
@@ -44,9 +44,9 @@ void connectToServerDialogImpl::refresh(int actionID) {
|
||||
default: { label_actionMessage->setText("Please wait..."); }
|
||||
}
|
||||
|
||||
progressBar->setValue(actionID*(100/MSG_SOCK_LAST));
|
||||
progressBar->setValue(actionID*(100/MSG_SOCK_LIMIT_CONNECT));
|
||||
|
||||
if (actionID == MSG_SOCK_LAST)
|
||||
if (actionID == MSG_SOCK_LIMIT_CONNECT)
|
||||
QTimer::singleShot(1000, this, SLOT(accept()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user