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

Move tempword and currentletter off of scriptclass

There's no reason for these temporary variables to be a permanent part
of the class itself.
This commit is contained in:
Misa 2020-07-02 16:03:40 -07:00 committed by Ethan Lee
parent f28fcd78e8
commit 56b2f43ff8
2 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,8 @@ void scriptclass::clearcustom(){
void scriptclass::tokenize( std::string t ) void scriptclass::tokenize( std::string t )
{ {
j = 0; j = 0;
tempword = ""; std::string tempword;
std::string currentletter;
for (size_t i = 0; i < t.length(); i++) for (size_t i = 0; i < t.length(); i++)
{ {

View File

@ -57,8 +57,6 @@ public:
int scriptdelay; int scriptdelay;
bool running, dontrunnextframe; bool running, dontrunnextframe;
std::string tempword;
std::string currentletter;
//Textbox stuff //Textbox stuff
int textx; int textx;