zinnschlag/openmw — pull request #449 by scrawl (2012-11-23 18:10:43+00:00)
Title: Dialogue fixes

- Remove the "space before topic" condition for topic coloring and adding the topic to the topics list. Observations in vanilla have shown that even topics part of a longer word (without spaces or quotes in between) are highlighted. So this check was certainly wrong.

- Sort topics descending by length before doing the coloring, to make sure longer topic names are properly replaced if they contain another topic as sub-string .