Commit MetaInfo

Revisióne957fcea64f335dc93b1db19266e7f717f5ae32a (tree)
Tiempo2022-09-15 04:33:59
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Refactored unformatted color strings that were used in the target identification.

Cambiar Resumen

Diferencia incremental

diff -r 9804b2bc957a -r e957fcea64f3 src/g_shared/shared_sbar.cpp
--- a/src/g_shared/shared_sbar.cpp Wed Sep 14 15:30:01 2022 -0400
+++ b/src/g_shared/shared_sbar.cpp Wed Sep 14 15:33:59 2022 -0400
@@ -1886,19 +1886,17 @@
18861886
18871887 if (( pTargetPlayer->mo != NULL ) && ( pTargetPlayer->mo->IsTeammate( camera )))
18881888 {
1889- targetInfoMsg += "\\n\\cqAlly";
1889+ targetInfoMsg += "\n" TEXTCOLOR_DARKGREEN "Ally";
18901890 }
18911891 else
18921892 {
1893- targetInfoMsg += "\\n\\crEnemy";
1893+ targetInfoMsg += "\n" TEXTCOLOR_DARKRED "Enemy";
18941894
18951895 // If this player is carrying the terminator artifact, display his name in red.
18961896 if ( (terminator) && (pTargetPlayer->cheats2 & CF2_TERMINATORARTIFACT) )
18971897 ulTextColor = CR_RED;
18981898 }
18991899
1900- V_ColorizeString( targetInfoMsg );
1901-
19021900 pMsg = new DHUDMessageFadeOut( SmallFont, targetInfoMsg,
19031901 1.5f,
19041902 gameinfo.gametype == GAME_Doom ? 0.96f : 0.95f,
Show on old repository browser