mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 12:18:22 +00:00
Add comments
test Revert "test" This reverts commit fb831f268b7a2f0ccd20595aff64902ab4f4b4ee.
This commit is contained in:
parent
98e099cdbc
commit
15dde782cf
@ -72,7 +72,6 @@ uint32_t BrickByBrickFix::TruncateBrokenBrickByBrickXml() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!document->Parse(completeUncompressedModel.c_str(), completeUncompressedModel.size()) == tinyxml2::XML_SUCCESS) {
|
if (!document->Parse(completeUncompressedModel.c_str(), completeUncompressedModel.size()) == tinyxml2::XML_SUCCESS) {
|
||||||
// Change this to just look for </LXFML> near the end of the function. Should rely on human interference for this...
|
|
||||||
if (completeUncompressedModel.find(
|
if (completeUncompressedModel.find(
|
||||||
"</LXFML>",
|
"</LXFML>",
|
||||||
completeUncompressedModel.length() >= 15 ? completeUncompressedModel.length() - 15 : 0) == std::string::npos
|
completeUncompressedModel.length() >= 15 ? completeUncompressedModel.length() - 15 : 0) == std::string::npos
|
||||||
|
@ -91,5 +91,7 @@ bool Database::GetAutoCommit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Database::SetAutoCommit(bool value) {
|
void Database::SetAutoCommit(bool value) {
|
||||||
|
// TODO This should not just access a pointer. A future PR should update this
|
||||||
|
// to check for null and throw an error if the connection is not valid.
|
||||||
Database::con->setAutoCommit(value);
|
Database::con->setAutoCommit(value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user