Save game: write unknown commands as comments, to help debugging

This commit is contained in:
Olivier Teulière 2012-10-05 19:52:05 +02:00
parent 47a827e9d4
commit 4acc731b17

View file

@ -279,10 +279,10 @@ void XmlWriter::write(const Game &iGame, const string &iFileName)
else
{
LOG_ERROR("Unsupported command: " << lfw(cmd->toString()));
out << indent << "<!-- FIXME: Unsupported command: " << lfw(cmd->toString()) << " -->" << endl;
// XXX
//throw SaveGameException("Unsupported command: " + lfw(cmd->toString()));
}
// TODO
}
removeIndent(indent);
out << indent << "</Turn>" << endl;