1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 18:48:29 +02:00

Actually fix #913 oops

This commit is contained in:
fraZ0R 2022-11-29 18:04:46 -05:00 committed by Misa Elizabeth Kai
parent ef6a2886e9
commit 63b8c71264

View File

@ -3543,7 +3543,7 @@ void scriptclass::loadcustom(const std::string& t)
break;
}
int ti=help.Int(words[1].c_str());
int nti = ti>=0 && ti<=50 ? ti : 1;
int nti = ti>=0 ? ti : 1;
for(int ti2=0; ti2<nti; ti2++){
i++;
if(INBOUNDS_VEC(i, lines)){
@ -3568,7 +3568,7 @@ void scriptclass::loadcustom(const std::string& t)
add("text(cyan,0,0,"+words[1]+")");
int ti=help.Int(words[1].c_str());
int nti = ti>=0 && ti<=50 ? ti : 1;
int nti = ti>=0 ? ti : 1;
for(int ti2=0; ti2<nti; ti2++){
i++;
if(INBOUNDS_VEC(i, lines)){