1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Clean up comments in script XML parsing code

I'm partial to slash-asterisk-style comments, so I'll use those here.
Also, having a space after the start of comments is good. I've also
removed the "Add the script if we have a preceding header" comments
since it can be inferred by reading the surrounding code.
This commit is contained in:
Misa 2021-02-12 16:29:08 -08:00 committed by Ethan Lee
parent 4f224e1657
commit fe77ada160

View file

@ -1885,7 +1885,6 @@ bool editorclass::load(std::string& _path)
{
if (headerfound)
{
//Add the script if we have a preceding header
script.customscripts.push_back(script_);
}
script_.name = line.substr(0, line.length()-1);
@ -1900,10 +1899,9 @@ bool editorclass::load(std::string& _path)
}
}
//Add the last script
/* Add the last script */
if (headerfound)
{
//Add the script if we have a preceding header
script.customscripts.push_back(script_);
}
}