This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)
Revision | a747428715984680f73d702d57e36e1458176280 (tree) |
---|---|
Zeit | 2022-09-08 04:39:01 |
Autor | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed: V_RemoveTrailingCrap didn't always remove trailing incomplete color code of type "\c[X" properly.
@@ -801,7 +801,7 @@ | ||
801 | 801 | if ( pChar > strrchr(pszString, ']') ) |
802 | 802 | { |
803 | 803 | const int index = pChar - pszString; |
804 | - if ( ( index > 2 ) && V_ColorCodeStart ( pszString, index-2 ) ) | |
804 | + if ( ( index >= 2 ) && V_ColorCodeStart ( pszString, index-2 ) ) | |
805 | 805 | { |
806 | 806 | pszString[index-2] = 0; |
807 | 807 | ulStringLength = static_cast<ULONG>(strlen( pszString )); |