mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 07:52:51 +02:00
- show more friendly message when out of synch detected.
This commit is contained in:
@@ -503,7 +503,8 @@ Command* Commander::buildCommand(const NetworkCommand* networkCommand) const {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"%s\n",szBuf);
|
||||
|
||||
std::string worldLog = world->DumpWorldToLog();
|
||||
std::string sError = "worldLog = " + worldLog + " " + string(szBuf);
|
||||
//std::string sError = "worldLog = " + worldLog + " " + string(szBuf);
|
||||
std::string sError = "Error [#1]: Game is out of sync, please check log files for details.";
|
||||
throw runtime_error(sError);
|
||||
}
|
||||
|
||||
@@ -522,7 +523,8 @@ Command* Commander::buildCommand(const NetworkCommand* networkCommand) const {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"%s\n",szBuf);
|
||||
|
||||
std::string worldLog = world->DumpWorldToLog();
|
||||
std::string sError = "worldLog = " + worldLog + " " + string(szBuf);
|
||||
//std::string sError = "worldLog = " + worldLog + " " + string(szBuf);
|
||||
std::string sError = "Error [#2]: Game is out of sync, please check log files for details.";
|
||||
throw runtime_error(sError);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user