From dabc7548fe27157db794efbab316a8aebffd955a Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Tue, 22 Jan 2013 18:06:48 -0200 Subject: [PATCH] Fix keyword highlighting in chat --- modules/game_console/console.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index 5038636a..94006ec5 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -401,7 +401,7 @@ function addTabText(text, speaktype, tab, creatureName) label:setText(text) -- Calculate the positions of the highlighted text and fill with string.char(127) [Width: 1] - local drawText = label:getDrawText() + local drawText = label:getText() local tmpText = "" for i = 1, #highlightData / 3 do local dataBlock = { _start = highlightData[(i-1)*3+1], _end = highlightData[(i-1)*3+2], words = highlightData[(i-1)*3+3] }