mirror of
https://github.com/glest/glest-source.git
synced 2025-10-02 18:36:48 +02:00
bugfix player # in disconnect message
This commit is contained in:
@@ -3737,10 +3737,10 @@ void Game::mouseDownLeft(int x, int y) {
|
|||||||
|
|
||||||
char szBuf[8096]="";
|
char szBuf[8096]="";
|
||||||
if(lang.hasString("DisconnectNetorkPlayerIndexConfirm") == true) {
|
if(lang.hasString("DisconnectNetorkPlayerIndexConfirm") == true) {
|
||||||
snprintf(szBuf,8096,lang.get("DisconnectNetorkPlayerIndexConfirm").c_str(),factionIndex,settings->getNetworkPlayerName(factionIndex).c_str());
|
snprintf(szBuf,8096,lang.get("DisconnectNetorkPlayerIndexConfirm").c_str(),factionIndex+1,settings->getNetworkPlayerName(factionIndex).c_str());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
snprintf(szBuf,8096,"Confirm disconnection for player #%d - %s?",factionIndex,settings->getNetworkPlayerName(factionIndex).c_str());
|
snprintf(szBuf,8096,"Confirm disconnection for player #%d - %s?",factionIndex+1,settings->getNetworkPlayerName(factionIndex).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnectPlayerConfirmMessageBox.setText(szBuf);
|
disconnectPlayerConfirmMessageBox.setText(szBuf);
|
||||||
@@ -3756,10 +3756,10 @@ void Game::mouseDownLeft(int x, int y) {
|
|||||||
for(unsigned int i = 0; i < languageList.size(); ++i) {
|
for(unsigned int i = 0; i < languageList.size(); ++i) {
|
||||||
char szMsg[8096]="";
|
char szMsg[8096]="";
|
||||||
if(lang.hasString("DisconnectNetorkPlayerIndexConfirmed",languageList[i]) == true) {
|
if(lang.hasString("DisconnectNetorkPlayerIndexConfirmed",languageList[i]) == true) {
|
||||||
snprintf(szMsg,8096,lang.get("DisconnectNetorkPlayerIndexConfirmed",languageList[i]).c_str(),factionIndex,settings->getNetworkPlayerName(factionIndex).c_str());
|
snprintf(szMsg,8096,lang.get("DisconnectNetorkPlayerIndexConfirmed",languageList[i]).c_str(),factionIndex+1,settings->getNetworkPlayerName(factionIndex).c_str());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
snprintf(szMsg,8096,"Notice - Admin is warning to disconnect player #%d - %s!",factionIndex,settings->getNetworkPlayerName(factionIndex).c_str());
|
snprintf(szMsg,8096,"Notice - Admin is warning to disconnect player #%d - %s!",factionIndex+1,settings->getNetworkPlayerName(factionIndex).c_str());
|
||||||
}
|
}
|
||||||
bool localEcho = lang.isLanguageLocal(languageList[i]);
|
bool localEcho = lang.isLanguageLocal(languageList[i]);
|
||||||
gameNetworkInterface->sendTextMessage(szMsg,-1, localEcho,languageList[i]);
|
gameNetworkInterface->sendTextMessage(szMsg,-1, localEcho,languageList[i]);
|
||||||
|
Reference in New Issue
Block a user