mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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_);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user