mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
4f224e1657
commit
fe77ada160
1 changed files with 1 additions and 3 deletions
|
@ -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_);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue