From 2b93f447392ce3e67675d29cf50cc83488a470c3 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 12 Aug 2022 23:14:40 -0600 Subject: [PATCH] small typo in TextServer, changes bitwise to logical which can be faster in some cases via "short circuiting" --- servers/text_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/text_server.cpp b/servers/text_server.cpp index 2bf0837d884..ead6961f59d 100644 --- a/servers/text_server.cpp +++ b/servers/text_server.cpp @@ -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)); }