mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Apply suggestions from code review
Co-authored-by: Misa Elizabeth Kai <infoteddy@infoteddy.info>
This commit is contained in:
parent
1183083355
commit
73a80a9b4f
1 changed files with 3 additions and 4 deletions
|
@ -520,9 +520,8 @@ void scriptclass::run(void)
|
||||||
textx = ss_toi(words[2]);
|
textx = ss_toi(words[2]);
|
||||||
texty = ss_toi(words[3]);
|
texty = ss_toi(words[3]);
|
||||||
|
|
||||||
// If words[4] ends with L, set large to true.
|
textlarge = endsWith(words[4].c_str(), "l") || endsWith(words[4].c_str(), "L");
|
||||||
textlarge = (words[4].size() > 0 && words[4][words[4].size() - 1] == 'l');
|
int lines = ss_toi(words[4]);
|
||||||
int lines = ss_toi(words[4].substr(0, words[4].size() - (textlarge ? 1 : 0)));
|
|
||||||
|
|
||||||
//Number of lines for the textbox!
|
//Number of lines for the textbox!
|
||||||
txt.clear();
|
txt.clear();
|
||||||
|
@ -3523,7 +3522,7 @@ bool scriptclass::loadcustom(const std::string& t)
|
||||||
add("text(blue,0,0,"+words[1]+")");
|
add("text(blue,0,0,"+words[1]+")");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
int ti = ss_toi(words[1].c_str());
|
int ti = ss_toi(words[1]);
|
||||||
int nti = ti >= 0 ? ti : 1;
|
int nti = ti >= 0 ? ti : 1;
|
||||||
for (int ti2 = 0; ti2 < nti; ti2++)
|
for (int ti2 = 0; ti2 < nti; ti2++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue