small typo in TextServer, changes bitwise to logical which can be faster in some cases via "short circuiting"

This commit is contained in:
Patrick 2022-08-12 23:14:40 -06:00 committed by firefly2442
parent f2a6168414
commit 2b93f44739

View file

@ -1627,7 +1627,7 @@ Array TextServer::parse_structured_text(StructuredTextParser p_parser_type, cons
ret.push_back(Vector2i(prev, i));
ret.push_back(Vector2i(i, i + 1));
prev = i + 1;
} else if (!local & (p_text[i] == '.')) { // Add each dot separated "domain" part as context.
} else if (!local && (p_text[i] == '.')) { // Add each dot separated "domain" part as context.
if (prev != i) {
ret.push_back(Vector2i(prev, i));
}