1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01: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; break;
} }
int ti=help.Int(words[1].c_str()); 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++){ for(int ti2=0; ti2<nti; ti2++){
i++; i++;
if(INBOUNDS_VEC(i, lines)){ if(INBOUNDS_VEC(i, lines)){
@ -3568,7 +3568,7 @@ void scriptclass::loadcustom(const std::string& t)
add("text(cyan,0,0,"+words[1]+")"); add("text(cyan,0,0,"+words[1]+")");
int ti=help.Int(words[1].c_str()); 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++){ for(int ti2=0; ti2<nti; ti2++){
i++; i++;
if(INBOUNDS_VEC(i, lines)){ if(INBOUNDS_VEC(i, lines)){