X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fmarkup.qc;h=bd1b79cbfbdb05dd3b3644b4c79f696f12ec2210;hb=1a366da10ff6cc0740b9c7754cc0d8c0fac356a4;hp=9f0883bd61ba0ea6696dc9a9e443f1f1e733addb;hpb=edf01df130d0d1877461561178b8833a9ab6051c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/markup.qc b/qcsrc/common/command/markup.qc index 9f0883bd6..bd1b79cbf 100644 --- a/qcsrc/common/command/markup.qc +++ b/qcsrc/common/command/markup.qc @@ -1,6 +1,7 @@ -#include "command.qh" #include "markup.qh" +#include + // ========================================================= // Markup chat characters command code, reworked by Samual // Last updated: December 28th, 2011 @@ -53,7 +54,6 @@ void GenericCommand_markup_init() markup_from[i] = "&.."; markup_to[i] = "\x9e"; ++i; markup_from[i] = "&.)"; markup_to[i] = "\x9f"; ++i; markup_from[i] = "&<|"; markup_to[i] = "\xff"; ++i; - unused_float = i; } string GenericCommand_markup(string s2) @@ -67,7 +67,8 @@ string GenericCommand_markup(string s2) red = 0; ccase = 0; - for(i = 0; i < strlen(s2); ++i) + int len = strlen(s2); + for (i = 0; i < len; ++i) { for(j = 0; j < NUM_MARKUPS; ++j) {