mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 22:34:21 +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:
1 parent
4f224e1657
commit
fe77ada160
1 file changed
+1
-3
@@ -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