parser recognizes race trigger brushes

This commit is contained in:
2017-07-07 23:28:44 -07:00
parent 24d011a289
commit 5d1d46e2cf

View File

@ -8,9 +8,13 @@ using namespace std;
bool is_ebrush(const std::vector<std::string> &input) {
#define KEYWORD_ENTBRUSH1 "type Teleporter"
#define KEYWORD_ENTBRUSH2 "type JumpPad"
#define KEYWORD_ENTBRUSH3 "type RaceStart"
#define KEYWORD_ENTBRUSH4 "type RaceFinish"
for (const string &str : input) {
if (str.find(KEYWORD_ENTBRUSH1) != string::npos ||
str.find(KEYWORD_ENTBRUSH2) != string::npos) {
str.find(KEYWORD_ENTBRUSH2) != string::npos ||
str.find(KEYWORD_ENTBRUSH3) != string::npos ||
str.find(KEYWORD_ENTBRUSH4) != string::npos) {
return true;
}
}