• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)


Commit MetaInfo

Revision2c280cd262f331f0bc8b1435ecf524a851154577 (tree)
Time2022-10-30 12:16:47
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: a string containing "\c[X]]" at the end would still treat it as a trailing color code and remove it.

Change Summary

Incremental Difference

diff -r 8eb5114f1b85 -r 2c280cd262f3 src/v_text.cpp
--- a/src/v_text.cpp Sat Oct 29 23:19:54 2022 -0400
+++ b/src/v_text.cpp Sat Oct 29 23:16:47 2022 -0400
@@ -771,6 +771,10 @@
771771 // [BB] Remove trailing color code of type "\c[X]".
772772 else if ( pszString[ulStringLength-1] == ']' )
773773 {
774+ // [AK] "\c[X]]" is not a trailing color code.
775+ if ( ( ulStringLength > 2 ) && ( pszString[ulStringLength-2] == ']' ) )
776+ break;
777+
774778 int i = 0;
775779 for ( i = ulStringLength-2; i >= 2; --i )
776780 {