mirror of
https://github.com/glest/glest-source.git
synced 2025-09-08 23:10:42 +02:00
client_interface.cpp:use lang.getString for disconnect msg
This will help keep strings consistent, and easier to edit later (hopefully). I'll add the string to data.
This commit is contained in:
@@ -1564,8 +1564,7 @@ namespace Glest {
|
|||||||
|
|
||||||
if (isConnected() == false) {
|
if (isConnected() == false) {
|
||||||
if (SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork, "In [%s::%s] Line: %d\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
|
if (SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork, "In [%s::%s] Line: %d\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
|
||||||
|
string sErr = lang.getString("ServerDisconnected");
|
||||||
string sErr = "Error, server has disconnected!";
|
|
||||||
DisplayErrorMessage(sErr);
|
DisplayErrorMessage(sErr);
|
||||||
|
|
||||||
if (SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork, "In [%s::%s] Line: %d\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
|
if (SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork, "In [%s::%s] Line: %d\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
|
||||||
@@ -1964,7 +1963,8 @@ namespace Glest {
|
|||||||
if (msg == nmtInvalid) {
|
if (msg == nmtInvalid) {
|
||||||
if (getSocket() == NULL || (chrono.getMillis() % 250 == 0 && isConnected() == false)) {
|
if (getSocket() == NULL || (chrono.getMillis() % 250 == 0 && isConnected() == false)) {
|
||||||
if (getQuit() == false) {
|
if (getQuit() == false) {
|
||||||
DisplayErrorMessage("Server has disconnected.");
|
Lang &lang = Lang::getInstance();
|
||||||
|
DisplayErrorMessage(lang.getString("ServerDisconnected"));
|
||||||
setQuit(true);
|
setQuit(true);
|
||||||
}
|
}
|
||||||
close();
|
close();
|
||||||
|
Reference in New Issue
Block a user