X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fmarkup.qc;h=1618f6e08f8053828637e62dda1e6e18b2972b39;hb=729f7cf812441720792d8a0e3444f3c3828368b6;hp=9f0883bd61ba0ea6696dc9a9e443f1f1e733addb;hpb=125d619e9ab2a307b15b7ee1a2ededed32c7e84d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/markup.qc b/qcsrc/common/command/markup.qc index 9f0883bd6..1618f6e08 100644 --- a/qcsrc/common/command/markup.qc +++ b/qcsrc/common/command/markup.qc @@ -1,5 +1,5 @@ -#include "command.qh" #include "markup.qh" +#include "command.qh" // ========================================================= // Markup chat characters command code, reworked by Samual @@ -53,7 +53,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 +66,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) {