Make scriptclass::load(other) rely less on std::string

Instead of comparing against an std::string (which is heavily
templated), just use good ol' SDL_strcmp().
This commit is contained in:
Misa
2020-07-04 15:59:21 -07:00
committed by Ethan Lee
parent 9398e9f1f0
commit d480c1011c
3 changed files with 210 additions and 209 deletions

View File

@@ -22,9 +22,9 @@ public:
scriptclass();
void load(std::string t);
void loadother(std::string t);
void load(std::string name);
void loadother(const char* t);
void loadcustom(std::string t);
void inline add(std::string t)
{
@@ -45,8 +45,6 @@ public:
void hardreset();
void loadcustom(std::string t);
//Script contents
std::vector<std::string> commands;
std::string words[40];