when client is waiting only for the server at game start we now display this
This commit is contained in:
parent
33549e2b0b
commit
f7a4730fff
|
@ -779,9 +779,9 @@ void ClientInterface::waitUntilReady(Checksum* checksum) {
|
||||||
lastMillisCheck = (chrono.getMillis() / 1000);
|
lastMillisCheck = (chrono.getMillis() / 1000);
|
||||||
|
|
||||||
char szBuf[1024]="";
|
char szBuf[1024]="";
|
||||||
string updateTextFormat = lang.get("NetworkGameClientLoadStatus");
|
string updateTextFormat = "Waiting for network: %lld seconds elapsed (maximum wait time: %d seconds)";
|
||||||
if(updateTextFormat == "" || updateTextFormat[0] == '?') {
|
if(lang.hasString("NetworkGameClientLoadStatus") == true) {
|
||||||
updateTextFormat = "Waiting for network: %lld seconds elapsed (maximum wait time: %d seconds)";
|
updateTextFormat = lang.get("NetworkGameClientLoadStatus");
|
||||||
}
|
}
|
||||||
|
|
||||||
string waitForHosts = "";
|
string waitForHosts = "";
|
||||||
|
@ -850,12 +850,15 @@ void ClientInterface::waitUntilReady(Checksum* checksum) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(waitForHosts == "") {
|
||||||
|
waitForHosts = lang.get("Server");
|
||||||
|
}
|
||||||
sprintf(szBuf,updateTextFormat.c_str(),(long long int)lastMillisCheck,int(readyWaitTimeout / 1000));
|
sprintf(szBuf,updateTextFormat.c_str(),(long long int)lastMillisCheck,int(readyWaitTimeout / 1000));
|
||||||
|
|
||||||
char szBuf1[1024]="";
|
char szBuf1[1024]="";
|
||||||
string statusTextFormat = lang.get("NetworkGameStatusWaiting");
|
string statusTextFormat = "Waiting for players: %s";
|
||||||
if(statusTextFormat == "" || statusTextFormat[0] == '?') {
|
if(lang.hasString("NetworkGameStatusWaiting") == true) {
|
||||||
statusTextFormat = "Waiting for players: %s";
|
statusTextFormat = lang.get("NetworkGameStatusWaiting");
|
||||||
}
|
}
|
||||||
sprintf(szBuf1,statusTextFormat.c_str(),waitForHosts.c_str());
|
sprintf(szBuf1,statusTextFormat.c_str(),waitForHosts.c_str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user