From 5d1d46e2cf62132395f1be8dd378c8ea36e4b4b5 Mon Sep 17 00:00:00 2001 From: <> Date: Fri, 7 Jul 2017 23:28:44 -0700 Subject: [PATCH] parser recognizes race trigger brushes --- ReflexToQ3/includes/oopless-parser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ReflexToQ3/includes/oopless-parser.cpp b/ReflexToQ3/includes/oopless-parser.cpp index d6a8a67..a2c905c 100644 --- a/ReflexToQ3/includes/oopless-parser.cpp +++ b/ReflexToQ3/includes/oopless-parser.cpp @@ -8,9 +8,13 @@ using namespace std; bool is_ebrush(const std::vector &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; } }