mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
apply pending protocol, ui, audio, and CodeQL fixes
This commit is contained in:
parent
586fb88c5f
commit
c69457ae3b
14 changed files with 276 additions and 142 deletions
|
|
@ -858,13 +858,7 @@ void GameScreen::renderChatWindow(game::GameHandler& gameHandler) {
|
|||
size_t pos = 0;
|
||||
while (pos < text.size()) {
|
||||
// Find next special element: URL or WoW link
|
||||
size_t urlStart = std::string::npos;
|
||||
size_t httpPos = text.find("http://", pos);
|
||||
size_t httpsPos = text.find("https://", pos);
|
||||
if (httpPos != std::string::npos && (httpsPos == std::string::npos || httpPos < httpsPos))
|
||||
urlStart = httpPos;
|
||||
else if (httpsPos != std::string::npos)
|
||||
urlStart = httpsPos;
|
||||
size_t urlStart = text.find("https://", pos);
|
||||
|
||||
// Find next WoW item link: |cXXXXXXXX|Hitem:ENTRY:...|h[Name]|h|r
|
||||
size_t linkStart = text.find("|c", pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue