This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).
Revision | 7ecfc9dc9271dda16ba9f40bccc710d4459364e0 (tree) |
---|---|
Time | 2021-09-19 00:27:48 |
Author | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Removed the function V_GetColorChar, which was only used to get the color code of a team, and replaced it with the function TEAM_GetTextColorName. This fixes a compatibility issue with printing team-related messages on the screen using custom colors.
@@ -95,6 +95,7 @@ | ||
95 | 95 | - - Fixed a player's old body from being frozen and not finishing their animation when they become a dead spectator. [Kaminsky] |
96 | 96 | - - Fixed dead spectators not spawning where they died if sv_samespawnspot is enabled. [Kaminsky] |
97 | 97 | - - Fixed ACS scripts puked by the server RCON from using player 0 as the activator. [Kaminsky] |
98 | +- - Fixed a compatibility issue with printing team-related messages on the screen using custom colors. [Kaminsky] | |
98 | 99 | ! - sv_forcegldefaults renamed to sv_forcevideodefaults. The old name still exists for compatibility. [Dusk] |
99 | 100 | ! - r_3dfloors is now forced to be true when sv_forcevideodefaults is true. [Dusk] |
100 | 101 | ! - When the wad authentication fails for a connecting client, the client only reports the missing and incompatible PWADS instead of all of them. [Pol Marcet] |
@@ -928,7 +928,7 @@ | ||
928 | 928 | else |
929 | 929 | { |
930 | 930 | OutString = TEXTCOLOR_ESCAPE; |
931 | - OutString += V_GetColorChar( TEAM_GetTextColor( players[consoleplayer].Team )); | |
931 | + OutString += TEAM_GetTextColorName( players[consoleplayer].Team ); | |
932 | 932 | OutString += "<TEAM> "; |
933 | 933 | } |
934 | 934 |
@@ -822,7 +822,7 @@ | ||
822 | 822 | if ( TEAM_CountPlayers( i ) < 1 ) |
823 | 823 | continue; |
824 | 824 | |
825 | - sprintf( szString , "\\c%c%d\n", V_GetColorChar( TEAM_GetTextColor ( i ) ), static_cast<unsigned int> (lPoints[i])); | |
825 | + sprintf( szString , "\\c%s%d\n", TEAM_GetTextColorName ( i ), static_cast<unsigned int> (lPoints[i])); | |
826 | 826 | V_ColorizeString( szString ); |
827 | 827 | |
828 | 828 | HUD_DrawText( ConFont, CR_GRAY, |
@@ -457,7 +457,7 @@ | ||
457 | 457 | SERVERCOMMANDS_PrintHUDMessage( "", 1.5f, TEAM_MESSAGE_Y_AXIS_SUB, 0, 0, HUDMESSAGETYPE_FADEOUT, CR_UNTRANSLATED, 3.0f, 0.0f, 0.5f, "SmallFont", MAKE_ID( 'S', 'U', 'B', 'S' ) ); |
458 | 458 | |
459 | 459 | // Create the "captured" message. |
460 | - sprintf( szString, "\\c%c%s team scores!", V_GetColorChar( TEAM_GetTextColor( Owner->player->Team )), TEAM_GetName( Owner->player->Team )); | |
460 | + sprintf( szString, "\\c%s%s team scores!", TEAM_GetTextColorName( Owner->player->Team ), TEAM_GetName( Owner->player->Team )); | |
461 | 461 | V_ColorizeString( szString ); |
462 | 462 | |
463 | 463 | // Now, print it. |
@@ -480,7 +480,7 @@ | ||
480 | 480 | } |
481 | 481 | |
482 | 482 | // [RC] Create the "scored by" and "assisted by" message. |
483 | - sprintf( szString, "\\c%cScored by: %s", V_GetColorChar( TEAM_GetTextColor( Owner->player->Team )), Owner->player->userinfo.GetName() ); | |
483 | + sprintf( szString, "\\c%sScored by: %s", TEAM_GetTextColorName( Owner->player->Team ), Owner->player->userinfo.GetName() ); | |
484 | 484 | const bool bAssisted = (TEAM_GetAssistPlayer(Owner->player->Team) != MAXPLAYERS); |
485 | 485 | if ( bAssisted ) |
486 | 486 | { |
@@ -490,9 +490,9 @@ | ||
490 | 490 | selfAssist = true; |
491 | 491 | |
492 | 492 | if ( selfAssist ) |
493 | - sprintf( szString + strlen ( szString ), "\\n\\c%c[ Self-Assisted ]", V_GetColorChar( TEAM_GetTextColor( Owner->player->Team ))); | |
493 | + sprintf( szString + strlen ( szString ), "\\n\\c%s[ Self-Assisted ]", TEAM_GetTextColorName( Owner->player->Team )); | |
494 | 494 | else |
495 | - sprintf( szString + strlen ( szString ), "\\n\\c%cAssisted by: %s", V_GetColorChar( TEAM_GetTextColor( Owner->player->Team )), players[TEAM_GetAssistPlayer( Owner->player->Team )].userinfo.GetName()); | |
495 | + sprintf( szString + strlen ( szString ), "\\n\\c%sAssisted by: %s", TEAM_GetTextColorName( Owner->player->Team ), players[TEAM_GetAssistPlayer( Owner->player->Team )].userinfo.GetName()); | |
496 | 496 | } |
497 | 497 | |
498 | 498 | V_ColorizeString( szString ); |
@@ -516,9 +516,9 @@ | ||
516 | 516 | SERVERCOMMANDS_PrintHUDMessage( szString, 1.5f, TEAM_MESSAGE_Y_AXIS_SUB, 0, 0, HUDMESSAGETYPE_FADEOUT, CR_UNTRANSLATED, 3.0f, 0.0f, 0.5f, "SmallFont", MAKE_ID( 'S', 'U', 'B', 'S' ) ); |
517 | 517 | |
518 | 518 | if( ( bAssisted ) && ( ! selfAssist ) ) |
519 | - SERVER_Printf( "%s and %s scored for the \034%c%s " TEXTCOLOR_NORMAL "team!\n", Owner->player->userinfo.GetName(), players[TEAM_GetAssistPlayer( Owner->player->Team )].userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( Owner->player->Team )), TEAM_GetName( Owner->player->Team )); | |
519 | + SERVER_Printf( "%s and %s scored for the \034%s%s " TEXTCOLOR_NORMAL "team!\n", Owner->player->userinfo.GetName(), players[TEAM_GetAssistPlayer( Owner->player->Team )].userinfo.GetName(), TEAM_GetTextColorName( Owner->player->Team ), TEAM_GetName( Owner->player->Team )); | |
520 | 520 | else |
521 | - SERVER_Printf( "%s scored for the \034%c%s " TEXTCOLOR_NORMAL "team!\n", Owner->player->userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( Owner->player->Team )), TEAM_GetName( Owner->player->Team )); | |
521 | + SERVER_Printf( "%s scored for the \034%s%s " TEXTCOLOR_NORMAL "team!\n", Owner->player->userinfo.GetName(), TEAM_GetTextColorName( Owner->player->Team ), TEAM_GetName( Owner->player->Team )); | |
522 | 522 | } |
523 | 523 | |
524 | 524 |
@@ -617,9 +617,9 @@ | ||
617 | 617 | |
618 | 618 | // Create the "pickup" message. |
619 | 619 | if (( pToucher->player - players ) == consoleplayer ) |
620 | - sprintf( szString, "\\c%cYou have the %s flag!", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
620 | + sprintf( szString, "\\c%sYou have the %s flag!", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
621 | 621 | else |
622 | - sprintf( szString, "\\c%c%s flag taken!", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
622 | + sprintf( szString, "\\c%s%s flag taken!", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
623 | 623 | |
624 | 624 | V_ColorizeString( szString ); |
625 | 625 |
@@ -639,18 +639,18 @@ | ||
639 | 639 | // If necessary, send it to clients. |
640 | 640 | else |
641 | 641 | { |
642 | - sprintf( szString, "\\c%cYou have the %s flag!", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
642 | + sprintf( szString, "\\c%sYou have the %s flag!", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
643 | 643 | V_ColorizeString( szString ); |
644 | 644 | SERVERCOMMANDS_PrintHUDMessage( szString, 1.5f, TEAM_MESSAGE_Y_AXIS, 0, 0, HUDMESSAGETYPE_FADEOUT, CR_UNTRANSLATED, 3.0f, 0.0f, 0.25f, "BigFont", MAKE_ID( 'C', 'N', 'T', 'R' ), ULONG( pToucher->player - players ), SVCF_ONLYTHISCLIENT ); |
645 | 645 | |
646 | - sprintf( szString, "\\c%c%s flag taken!", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
646 | + sprintf( szString, "\\c%s%s flag taken!", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
647 | 647 | V_ColorizeString( szString ); |
648 | 648 | SERVERCOMMANDS_PrintHUDMessage( szString, 1.5f, TEAM_MESSAGE_Y_AXIS, 0, 0, HUDMESSAGETYPE_FADEOUT, CR_UNTRANSLATED, 3.0f, 0.0f, 0.25f, "BigFont", MAKE_ID( 'C', 'N', 'T', 'R' ), ULONG( pToucher->player - players ), SVCF_SKIPTHISCLIENT ); |
649 | 649 | } |
650 | 650 | |
651 | 651 | // [RC] Create the "held by" message for the team. |
652 | 652 | ULONG playerIndex = ULONG( pToucher->player - players ); |
653 | - sprintf( szString, "\\c%cHeld by: %s", V_GetColorChar( TEAM_GetTextColor( players[playerIndex].Team )), players[playerIndex].userinfo.GetName() ); | |
653 | + sprintf( szString, "\\c%sHeld by: %s", TEAM_GetTextColorName( players[playerIndex].Team ), players[playerIndex].userinfo.GetName() ); | |
654 | 654 | |
655 | 655 | V_ColorizeString( szString ); |
656 | 656 |
@@ -674,7 +674,7 @@ | ||
674 | 674 | else |
675 | 675 | { |
676 | 676 | SERVERCOMMANDS_PrintHUDMessage( szString, 1.5f, TEAM_MESSAGE_Y_AXIS_SUB, 0, 0, HUDMESSAGETYPE_FADEOUT, CR_UNTRANSLATED, 3.0f, 0.0f, 0.25f, "SmallFont", MAKE_ID( 'S', 'U', 'B', 'S' ), ULONG( pToucher->player - players ), SVCF_SKIPTHISCLIENT ); |
677 | - SERVER_Printf( PRINT_MEDIUM, "%s has taken the \034%c%s " TEXTCOLOR_NORMAL "flag.\n", players[playerIndex].userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
677 | + SERVER_Printf( PRINT_MEDIUM, "%s has taken the \034%s%s " TEXTCOLOR_NORMAL "flag.\n", players[playerIndex].userinfo.GetName(), TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
678 | 678 | } |
679 | 679 | } |
680 | 680 |
@@ -753,7 +753,7 @@ | ||
753 | 753 | { |
754 | 754 | // [RC] Create the "returned by" message for this team. |
755 | 755 | ULONG playerIndex = ULONG( pReturner->player - players ); |
756 | - sprintf( szString, "\\c%cReturned by: %s", V_GetColorChar( TEAM_GetTextColor( players[playerIndex].Team )), players[playerIndex].userinfo.GetName() ); | |
756 | + sprintf( szString, "\\c%sReturned by: %s", TEAM_GetTextColorName( players[playerIndex].Team ), players[playerIndex].userinfo.GetName() ); | |
757 | 757 | |
758 | 758 | // [CK] Send out an event that a flag/skull was returned, this is the easiest place to do it |
759 | 759 | // Second argument is the team index, third argument is what kind of return it was |
@@ -762,7 +762,7 @@ | ||
762 | 762 | else |
763 | 763 | { |
764 | 764 | // [RC] Create the "returned automatically" message for this team. |
765 | - sprintf( szString, "\\c%cReturned automatically.", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this )))); | |
765 | + sprintf( szString, "\\c%sReturned automatically.", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this ))); | |
766 | 766 | |
767 | 767 | // [CK] Indicate the server returned the flag/skull after a timeout |
768 | 768 | GAMEMODE_HandleEvent ( GAMEEVENT_RETURNS, NULL, static_cast<int> ( ulItemTeam ), GAMEEVENT_RETURN_TIMEOUTRETURN ); |
@@ -774,9 +774,9 @@ | ||
774 | 774 | if ( NETWORK_GetState( ) == NETSTATE_SERVER ) |
775 | 775 | { |
776 | 776 | if ( pReturner && pReturner->player ) |
777 | - SERVER_Printf( PRINT_MEDIUM, "%s returned the \034%c%s " TEXTCOLOR_NORMAL "flag.\n", pReturner->player->userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
777 | + SERVER_Printf( PRINT_MEDIUM, "%s returned the \034%s%s " TEXTCOLOR_NORMAL "flag.\n", pReturner->player->userinfo.GetName(), TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
778 | 778 | else |
779 | - SERVER_Printf( PRINT_MEDIUM, "\034%c%s " TEXTCOLOR_NORMAL "flag returned.\n", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
779 | + SERVER_Printf( PRINT_MEDIUM, "\034%s%s " TEXTCOLOR_NORMAL "flag returned.\n", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
780 | 780 | } |
781 | 781 | } |
782 | 782 |
@@ -813,7 +813,7 @@ | ||
813 | 813 | char szString[256]; |
814 | 814 | |
815 | 815 | // Create the "returned" message. |
816 | - sprintf( szString, "\\c%c%s flag returned", V_GetColorChar( TEAM_GetTextColor ( TEAM_GetTeamFromItem( this ))), TEAM_GetName ( TEAM_GetTeamFromItem( this ))); | |
816 | + sprintf( szString, "\\c%s%s flag returned", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName ( TEAM_GetTeamFromItem( this ))); | |
817 | 817 | |
818 | 818 | V_ColorizeString( szString ); |
819 | 819 |
@@ -904,7 +904,7 @@ | ||
904 | 904 | } |
905 | 905 | |
906 | 906 | // Create the "captured" message. |
907 | - sprintf( szString, "\\c%c%s team scores!", V_GetColorChar( TEAM_GetTextColor( Owner->player->Team )), TEAM_GetName( Owner->player->Team )); | |
907 | + sprintf( szString, "\\c%s%s team scores!", TEAM_GetTextColorName( Owner->player->Team ), TEAM_GetName( Owner->player->Team )); | |
908 | 908 | V_ColorizeString( szString ); |
909 | 909 | |
910 | 910 | // Now, print it. |
@@ -927,7 +927,7 @@ | ||
927 | 927 | } |
928 | 928 | |
929 | 929 | // [BC] Rivecoder's "scored by" message. |
930 | - sprintf( szString, "\\c%cScored by: %s", V_GetColorChar( TEAM_GetTextColor( Owner->player->Team )), Owner->player->userinfo.GetName() ); | |
930 | + sprintf( szString, "\\c%sScored by: %s", TEAM_GetTextColorName( Owner->player->Team ), Owner->player->userinfo.GetName() ); | |
931 | 931 | V_ColorizeString( szString ); |
932 | 932 | |
933 | 933 | // Now, print it. |
@@ -1065,7 +1065,7 @@ | ||
1065 | 1065 | sprintf( szName, "%s", players[ulPlayer].userinfo.GetName() ); |
1066 | 1066 | V_RemoveColorCodes( szName ); |
1067 | 1067 | |
1068 | - sprintf( szString, "\\ccHeld by: \\c%c%s", V_GetColorChar( TEAM_GetTextColor( players[ulPlayer].Team )), szName ); | |
1068 | + sprintf( szString, "\\ccHeld by: \\c%s%s", TEAM_GetTextColorName( players[ulPlayer].Team ), szName ); | |
1069 | 1069 | V_ColorizeString( szString ); |
1070 | 1070 | |
1071 | 1071 | // Now, print it. |
@@ -1235,9 +1235,9 @@ | ||
1235 | 1235 | |
1236 | 1236 | // Create the "pickup" message. |
1237 | 1237 | if (( pToucher->player - players ) == consoleplayer ) |
1238 | - sprintf( szString, "\\c%cYou have the %s skull!", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1238 | + sprintf( szString, "\\c%sYou have the %s skull!", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1239 | 1239 | else |
1240 | - sprintf( szString, "\\c%c%s skull taken!", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1240 | + sprintf( szString, "\\c%s%s skull taken!", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1241 | 1241 | |
1242 | 1242 | V_ColorizeString( szString ); |
1243 | 1243 |
@@ -1257,18 +1257,18 @@ | ||
1257 | 1257 | // If necessary, send it to clients. |
1258 | 1258 | else |
1259 | 1259 | { |
1260 | - sprintf( szString, "\\c%cYou have the %s skull!", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1260 | + sprintf( szString, "\\c%sYou have the %s skull!", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1261 | 1261 | V_ColorizeString( szString ); |
1262 | 1262 | SERVERCOMMANDS_PrintHUDMessage( szString, 1.5f, TEAM_MESSAGE_Y_AXIS, 0, 0, HUDMESSAGETYPE_FADEOUT, CR_UNTRANSLATED, 3.0f, 0.0f, 0.25f, "BigFont", MAKE_ID( 'C', 'N', 'T', 'R' ), ULONG( pToucher->player - players ), SVCF_ONLYTHISCLIENT ); |
1263 | 1263 | |
1264 | - sprintf( szString, "\\c%c%s skull taken!", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1264 | + sprintf( szString, "\\c%s%s skull taken!", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1265 | 1265 | V_ColorizeString( szString ); |
1266 | 1266 | SERVERCOMMANDS_PrintHUDMessage( szString, 1.5f, TEAM_MESSAGE_Y_AXIS, 0, 0, HUDMESSAGETYPE_FADEOUT, CR_UNTRANSLATED, 3.0f, 0.0f, 0.25f, "BigFont", MAKE_ID( 'C', 'N', 'T', 'R' ), ULONG( pToucher->player - players ), SVCF_SKIPTHISCLIENT ); |
1267 | 1267 | } |
1268 | 1268 | |
1269 | 1269 | // [RC] Create the "held by" message for this team. |
1270 | 1270 | ULONG playerIndex = ULONG( pToucher->player - players ); |
1271 | - sprintf( szString, "\\c%cHeld by: %s", V_GetColorChar( TEAM_GetTextColor( players[playerIndex].Team )), players[playerIndex].userinfo.GetName()); | |
1271 | + sprintf( szString, "\\c%sHeld by: %s", TEAM_GetTextColorName( players[playerIndex].Team ), players[playerIndex].userinfo.GetName()); | |
1272 | 1272 | |
1273 | 1273 | V_ColorizeString( szString ); |
1274 | 1274 |
@@ -1292,7 +1292,7 @@ | ||
1292 | 1292 | else |
1293 | 1293 | { |
1294 | 1294 | SERVERCOMMANDS_PrintHUDMessage( szString, 1.5f, TEAM_MESSAGE_Y_AXIS_SUB, 0, 0, HUDMESSAGETYPE_FADEOUT, CR_UNTRANSLATED, 3.0f, 0.0f, 0.25f, "SmallFont", MAKE_ID( 'S', 'U', 'B', 'S' ), ULONG( pToucher->player - players ), SVCF_SKIPTHISCLIENT ); |
1295 | - SERVER_Printf( PRINT_MEDIUM, "%s has taken the \034%c%s " TEXTCOLOR_NORMAL "skull.\n", players[playerIndex].userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1295 | + SERVER_Printf( PRINT_MEDIUM, "%s has taken the \034%s%s " TEXTCOLOR_NORMAL "skull.\n", players[playerIndex].userinfo.GetName(), TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1296 | 1296 | } |
1297 | 1297 | } |
1298 | 1298 |
@@ -1371,7 +1371,7 @@ | ||
1371 | 1371 | { |
1372 | 1372 | // [RC] Create the "returned by" message for this team. |
1373 | 1373 | ULONG playerIndex = ULONG( pReturner->player - players ); |
1374 | - sprintf( szString, "\\c%cReturned by: %s", V_GetColorChar( TEAM_GetTextColor( players[playerIndex].Team )), players[playerIndex].userinfo.GetName() ); | |
1374 | + sprintf( szString, "\\c%sReturned by: %s", TEAM_GetTextColorName( players[playerIndex].Team ), players[playerIndex].userinfo.GetName() ); | |
1375 | 1375 | |
1376 | 1376 | // [AK] Trigger an event script indicating that a player returned the skull. |
1377 | 1377 | GAMEMODE_HandleEvent( GAMEEVENT_RETURNS, pReturner, static_cast<int> ( ulItemTeam ), GAMEEVENT_RETURN_PLAYERRETURN ); |
@@ -1379,7 +1379,7 @@ | ||
1379 | 1379 | else |
1380 | 1380 | { |
1381 | 1381 | // [RC] Create the "returned automatically" message for this team. |
1382 | - sprintf( szString, "\\c%cReturned automatically.", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this )))); | |
1382 | + sprintf( szString, "\\c%sReturned automatically.", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this ))); | |
1383 | 1383 | |
1384 | 1384 | // [AK] Trigger an event script indicating that the skull was returned after a timeout. |
1385 | 1385 | GAMEMODE_HandleEvent( GAMEEVENT_RETURNS, NULL, static_cast<int> ( ulItemTeam ), GAMEEVENT_RETURN_TIMEOUTRETURN ); |
@@ -1391,9 +1391,9 @@ | ||
1391 | 1391 | if ( NETWORK_GetState( ) == NETSTATE_SERVER ) |
1392 | 1392 | { |
1393 | 1393 | if ( pReturner && pReturner->player ) |
1394 | - SERVER_Printf( PRINT_MEDIUM, "%s returned the \034%c%s " TEXTCOLOR_NORMAL "skull.\n", pReturner->player->userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1394 | + SERVER_Printf( PRINT_MEDIUM, "%s returned the \034%s%s " TEXTCOLOR_NORMAL "skull.\n", pReturner->player->userinfo.GetName(), TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1395 | 1395 | else |
1396 | - SERVER_Printf( PRINT_MEDIUM, "\034%c%s " TEXTCOLOR_NORMAL "skull returned.\n", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1396 | + SERVER_Printf( PRINT_MEDIUM, "\034%s%s " TEXTCOLOR_NORMAL "skull returned.\n", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1397 | 1397 | } |
1398 | 1398 | } |
1399 | 1399 |
@@ -1430,7 +1430,7 @@ | ||
1430 | 1430 | char szString[256]; |
1431 | 1431 | |
1432 | 1432 | // Create the "returned" message. |
1433 | - sprintf( szString, "\\c%c%s skull returned", V_GetColorChar( TEAM_GetTextColor( TEAM_GetTeamFromItem( this ))), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1433 | + sprintf( szString, "\\c%s%s skull returned", TEAM_GetTextColorName( TEAM_GetTeamFromItem( this )), TEAM_GetName( TEAM_GetTeamFromItem( this ))); | |
1434 | 1434 | |
1435 | 1435 | V_ColorizeString( szString ); |
1436 | 1436 |
@@ -872,9 +872,9 @@ | ||
872 | 872 | int leadingTeam = !!( scores[1] > scores[0] ); |
873 | 873 | int losingTeam = 1 - leadingTeam; |
874 | 874 | |
875 | - text.Format ("\\c%c%d\\cC - \\c%c%d", | |
876 | - V_GetColorChar( TEAM_GetTextColor( leadingTeam )), scores[leadingTeam], | |
877 | - V_GetColorChar( TEAM_GetTextColor( losingTeam )), scores[losingTeam] ); | |
875 | + text.Format ("\\c%s%d\\cC - \\c%s%d", | |
876 | + TEAM_GetTextColorName( leadingTeam ), scores[leadingTeam], | |
877 | + TEAM_GetTextColorName( losingTeam ), scores[losingTeam] ); | |
878 | 878 | } |
879 | 879 | else |
880 | 880 | { |
@@ -887,7 +887,7 @@ | ||
887 | 887 | text += "\\cC - "; |
888 | 888 | |
889 | 889 | text += "\\c"; |
890 | - text += V_GetColorChar( TEAM_GetTextColor( teams[i] )); | |
890 | + text += TEAM_GetTextColorName( teams[i] ); | |
891 | 891 | text.AppendFormat( "%d", GetScoreForTeam( teams[i] )); |
892 | 892 | } |
893 | 893 | } |
@@ -459,7 +459,7 @@ | ||
459 | 459 | if ( GAMEMODE_GetCurrentFlags( ) & GMF_PLAYERSONTEAMS ) |
460 | 460 | { |
461 | 461 | color = TEXTCOLOR_ESCAPE; |
462 | - color += V_GetColorChar( TEAM_GetTextColor( players[ulDisplayPlayer].Team )); | |
462 | + color += TEAM_GetTextColorName( players[ulDisplayPlayer].Team ); | |
463 | 463 | } |
464 | 464 | |
465 | 465 | bottomString.AppendFormat( "%sFollowing - %s%s", color.GetChars( ), players[ulDisplayPlayer].userinfo.GetName( ), color.GetChars( )); |
@@ -1126,7 +1126,7 @@ | ||
1126 | 1126 | |
1127 | 1127 | // [AK] Reset the list of team names, starting with this team. |
1128 | 1128 | teamName = TEXTCOLOR_ESCAPE; |
1129 | - teamName.AppendFormat( "%c%s", V_GetColorChar( TEAM_GetTextColor( ulTeam )), TEAM_GetName( ulTeam )); | |
1129 | + teamName.AppendFormat( "%s%s", TEAM_GetTextColorName( ulTeam ), TEAM_GetName( ulTeam )); | |
1130 | 1130 | ulNumTeamsWithHighestScore = 1; |
1131 | 1131 | } |
1132 | 1132 | // [AK] If this team's score is equal to the current highest score, add their name to the end of the list. |
@@ -1139,7 +1139,7 @@ | ||
1139 | 1139 | |
1140 | 1140 | // [AK] Store this team's name and text color into a string, we'll need it later. |
1141 | 1141 | lastTeamName = TEXTCOLOR_ESCAPE; |
1142 | - lastTeamName.AppendFormat( "%c%s", V_GetColorChar( TEAM_GetTextColor( ulTeam )), TEAM_GetName( ulTeam )); | |
1142 | + lastTeamName.AppendFormat( "%s%s", TEAM_GetTextColorName( ulTeam ), TEAM_GetName( ulTeam )); | |
1143 | 1143 | ulNumTeamsWithHighestScore++; |
1144 | 1144 | } |
1145 | 1145 |
@@ -443,7 +443,7 @@ | ||
443 | 443 | if ( ulWinner == teams.Size( ) ) |
444 | 444 | sprintf( szString, "\\cdDraw Game!" ); |
445 | 445 | else |
446 | - sprintf( szString, "\\c%c%s Wins!", V_GetColorChar( TEAM_GetTextColor( ulWinner ) ), TEAM_GetName( ulWinner )); | |
446 | + sprintf( szString, "\\c%s%s Wins!", TEAM_GetTextColorName( ulWinner ), TEAM_GetName( ulWinner )); | |
447 | 447 | } |
448 | 448 | else if ( ulWinner == MAXPLAYERS ) |
449 | 449 | sprintf( szString, "\\cdDRAW GAME!" ); |
@@ -641,7 +641,7 @@ | ||
641 | 641 | if (( NETWORK_GetState( ) == NETSTATE_SINGLE_MULTIPLAYER ) && ( players[consoleplayer].mo->CheckLocalView( source->player - players ))) |
642 | 642 | sprintf( szString, "\\cGYOU WIN!" ); |
643 | 643 | else if (( teamplay ) && ( source->player->bOnTeam )) |
644 | - sprintf( szString, "\\c%c%s wins!\n", V_GetColorChar( TEAM_GetTextColor( source->player->Team )), TEAM_GetName( source->player->Team )); | |
644 | + sprintf( szString, "\\c%s%s wins!\n", TEAM_GetTextColorName( source->player->Team ), TEAM_GetName( source->player->Team )); | |
645 | 645 | else |
646 | 646 | sprintf( szString, "%s \\cGWINS!", players[source->player - players].userinfo.GetName() ); |
647 | 647 | V_ColorizeString( szString ); |
@@ -2338,7 +2338,7 @@ | ||
2338 | 2338 | if (( NETWORK_GetState() != NETSTATE_SERVER ) && pPlayer->mo->IsTeammate( players[consoleplayer].camera )) |
2339 | 2339 | ANNOUNCER_PlayEntry( cl_announcer, "YouWin" ); |
2340 | 2340 | |
2341 | - sprintf( szString, "\\c%c%s WINS!", V_GetColorChar( TEAM_GetTextColor( pPlayer->Team )), TEAM_GetName( pPlayer->Team )); | |
2341 | + sprintf( szString, "\\c%s%s WINS!", TEAM_GetTextColorName( pPlayer->Team ), TEAM_GetName( pPlayer->Team )); | |
2342 | 2342 | V_ColorizeString( szString ); |
2343 | 2343 | |
2344 | 2344 | if ( NETWORK_GetState( ) != NETSTATE_SERVER ) |
@@ -2433,7 +2433,7 @@ | ||
2433 | 2433 | // Player has changed his team! Tell clients. |
2434 | 2434 | if ( bBroadcastChange ) |
2435 | 2435 | { |
2436 | - SERVER_Printf( "%s joined the \034%c%s " TEXTCOLOR_NORMAL "team.\n", pPlayer->userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( ulTeam ) ), TEAM_GetName( ulTeam )); | |
2436 | + SERVER_Printf( "%s joined the \034%s%s " TEXTCOLOR_NORMAL "team.\n", pPlayer->userinfo.GetName(), TEAM_GetTextColorName( ulTeam ), TEAM_GetName( ulTeam )); | |
2437 | 2437 | } |
2438 | 2438 | } |
2439 | 2439 |
@@ -720,8 +720,8 @@ | ||
720 | 720 | // [RC] On team possession, state who scored. |
721 | 721 | if ( teampossession && ( players[ulPlayer].bOnTeam )) |
722 | 722 | { |
723 | - sprintf( szString, "\\c%c%s %s!", V_GetColorChar( TEAM_GetTextColor( players[ulPlayer].Team )), TEAM_GetName( players[ulPlayer].Team ) ,bPointLimitReached ? "WINS" : "SCORES" ); | |
724 | - sprintf( szScorer, "\\c%cScored by: %s", V_GetColorChar( TEAM_GetTextColor( players[ulPlayer].Team )), players[ulPlayer].userinfo.GetName() ); | |
723 | + sprintf( szString, "\\c%s%s %s!", TEAM_GetTextColorName( players[ulPlayer].Team ), TEAM_GetName( players[ulPlayer].Team ) ,bPointLimitReached ? "WINS" : "SCORES" ); | |
724 | + sprintf( szScorer, "\\c%sScored by: %s", TEAM_GetTextColorName( players[ulPlayer].Team ), players[ulPlayer].userinfo.GetName() ); | |
725 | 725 | |
726 | 726 | // [BB] I don't see why we should remove the player name's color codes here. It's not done in CTF either |
727 | 727 | // and the player's team is apparent from the rest of the message. |
@@ -6249,12 +6249,12 @@ | ||
6249 | 6249 | // Player was on a team, so tell everyone that he's changing teams. |
6250 | 6250 | if ( bOnTeam ) |
6251 | 6251 | { |
6252 | - SERVER_Printf( "%s defected to the \034%c%s " TEXTCOLOR_NORMAL "team.\n", players[g_lCurrentClient].userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( players[g_lCurrentClient].Team )), TEAM_GetName( players[g_lCurrentClient].Team )); | |
6252 | + SERVER_Printf( "%s defected to the \034%s%s " TEXTCOLOR_NORMAL "team.\n", players[g_lCurrentClient].userinfo.GetName(), TEAM_GetTextColorName( players[g_lCurrentClient].Team ), TEAM_GetName( players[g_lCurrentClient].Team )); | |
6253 | 6253 | } |
6254 | 6254 | // Otherwise, tell everyone he's joining a team. |
6255 | 6255 | else |
6256 | 6256 | { |
6257 | - SERVER_Printf( "%s joined the \034%c%s " TEXTCOLOR_NORMAL "team.\n", players[g_lCurrentClient].userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( players[g_lCurrentClient].Team )), TEAM_GetName( players[g_lCurrentClient].Team )); | |
6257 | + SERVER_Printf( "%s joined the \034%s%s " TEXTCOLOR_NORMAL "team.\n", players[g_lCurrentClient].userinfo.GetName(), TEAM_GetTextColorName( players[g_lCurrentClient].Team ), TEAM_GetName( players[g_lCurrentClient].Team )); | |
6258 | 6258 | } |
6259 | 6259 | |
6260 | 6260 | if ( players[g_lCurrentClient].mo ) |
@@ -500,15 +500,15 @@ | ||
500 | 500 | |
501 | 501 | // Create the console message. |
502 | 502 | if( ( bAssisted ) && ( ! bSelfAssisted ) ) |
503 | - sprintf(szString, "%s and %s scored for the \034%c%s " TEXTCOLOR_NORMAL "team!\n", pPlayer->userinfo.GetName(), players[TEAM_GetAssistPlayer( pPlayer->Team )].userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( pPlayer->Team )), TEAM_GetName( pPlayer->Team )); | |
503 | + sprintf(szString, "%s and %s scored for the \034%s%s " TEXTCOLOR_NORMAL "team!\n", pPlayer->userinfo.GetName(), players[TEAM_GetAssistPlayer( pPlayer->Team )].userinfo.GetName(), TEAM_GetTextColorName( pPlayer->Team ), TEAM_GetName( pPlayer->Team )); | |
504 | 504 | else |
505 | - sprintf(szString, "%s scored for the \034%c%s " TEXTCOLOR_NORMAL "team!\n", pPlayer->userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( pPlayer->Team )), TEAM_GetName( pPlayer->Team )); | |
505 | + sprintf(szString, "%s scored for the \034%s%s " TEXTCOLOR_NORMAL "team!\n", pPlayer->userinfo.GetName(), TEAM_GetTextColorName( pPlayer->Team ), TEAM_GetName( pPlayer->Team )); | |
506 | 506 | |
507 | 507 | if ( NETWORK_GetState( ) == NETSTATE_SERVER ) |
508 | 508 | SERVERCOMMANDS_Print( szString, PRINT_HIGH ); |
509 | 509 | |
510 | 510 | // Create the fullscreen message. |
511 | - FString coloredTeamName = V_GetColorChar( TEAM_GetTextColor( pPlayer->Team ) ); | |
511 | + FString coloredTeamName = TEAM_GetTextColorName( pPlayer->Team ); | |
512 | 512 | coloredTeamName += " "; |
513 | 513 | coloredTeamName += TEAM_GetName( pPlayer->Team ); |
514 | 514 | switch ( ulNumPoints ) |
@@ -564,14 +564,14 @@ | ||
564 | 564 | } |
565 | 565 | |
566 | 566 | // Create the "scored by / assisted by" message. |
567 | - sprintf( szString, "\\c%cScored by: %s", V_GetColorChar( TEAM_GetTextColor( pPlayer->Team ) ), pPlayer->userinfo.GetName()); | |
567 | + sprintf( szString, "\\c%sScored by: %s", TEAM_GetTextColorName( pPlayer->Team ), pPlayer->userinfo.GetName()); | |
568 | 568 | |
569 | 569 | if ( bAssisted ) |
570 | 570 | { |
571 | 571 | if ( bSelfAssisted ) |
572 | - sprintf( szString + strlen ( szString ), "\\n\\c%c( Self-Assisted )", V_GetColorChar( TEAM_GetTextColor( pPlayer->Team ) ) ); | |
572 | + sprintf( szString + strlen ( szString ), "\\n\\c%s( Self-Assisted )", TEAM_GetTextColorName( pPlayer->Team ) ); | |
573 | 573 | else |
574 | - sprintf( szString + strlen ( szString ), "\\n\\c%cAssisted by: %s", V_GetColorChar( TEAM_GetTextColor( pPlayer->Team ) ), players[TEAM_GetAssistPlayer( pPlayer->Team )].userinfo.GetName()); | |
574 | + sprintf( szString + strlen ( szString ), "\\n\\c%sAssisted by: %s", TEAM_GetTextColorName( pPlayer->Team ), players[TEAM_GetAssistPlayer( pPlayer->Team )].userinfo.GetName()); | |
575 | 575 | } |
576 | 576 | |
577 | 577 | V_ColorizeString( szString ); |
@@ -683,7 +683,7 @@ | ||
683 | 683 | return; |
684 | 684 | |
685 | 685 | // Create the message. |
686 | - sprintf( szString, "\\c%cThe %s skull must be returned first!", V_GetColorChar( TEAM_GetTextColor( pPlayer->Team )), TEAM_GetName( pPlayer->Team )); | |
686 | + sprintf( szString, "\\c%sThe %s skull must be returned first!", TEAM_GetTextColorName( pPlayer->Team ), TEAM_GetName( pPlayer->Team )); | |
687 | 687 | |
688 | 688 | V_ColorizeString( szString ); |
689 | 689 |
@@ -728,7 +728,7 @@ | ||
728 | 728 | if ( NETWORK_GetState( ) == NETSTATE_SERVER ) |
729 | 729 | { |
730 | 730 | SERVERCOMMANDS_TeamFlagDropped( ULONG( pPlayer - players ), ulTeamIdx ); |
731 | - SERVER_Printf( PRINT_MEDIUM, "%s lost the \034%c%s " TEXTCOLOR_NORMAL "%s.\n", pPlayer->userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( ulTeamIdx)), TEAM_GetName( ulTeamIdx), ( skulltag ) ? "skull" : "flag" ); | |
731 | + SERVER_Printf( PRINT_MEDIUM, "%s lost the \034%s%s " TEXTCOLOR_NORMAL "%s.\n", pPlayer->userinfo.GetName(), TEAM_GetTextColorName( ulTeamIdx), TEAM_GetName( ulTeamIdx), ( skulltag ) ? "skull" : "flag" ); | |
732 | 732 | return; |
733 | 733 | } |
734 | 734 |
@@ -736,7 +736,7 @@ | ||
736 | 736 | Printf( "%s %s dropped!\n", TEAM_GetName( ulTeamIdx ), ( skulltag ) ? "skull" : "flag" ); |
737 | 737 | |
738 | 738 | // Next, build the dropped message. |
739 | - sprintf( szString, "\\c%c%s %s dropped!", V_GetColorChar( TEAM_GetTextColor( ulTeamIdx )), TEAM_GetName( ulTeamIdx ), ( skulltag ) ? "skull" : "flag" ); | |
739 | + sprintf( szString, "\\c%s%s %s dropped!", TEAM_GetTextColorName( ulTeamIdx ), TEAM_GetName( ulTeamIdx ), ( skulltag ) ? "skull" : "flag" ); | |
740 | 740 | |
741 | 741 | // Colorize it. |
742 | 742 | V_ColorizeString( szString ); |
@@ -776,7 +776,7 @@ | ||
776 | 776 | |
777 | 777 | // Display "%s WINS!" HUD message. |
778 | 778 | if ( ulTeamIdx < teams.Size( ) ) |
779 | - sprintf( szString, "\\c%c%s WINS!", V_GetColorChar( TEAM_GetTextColor( ulTeamIdx ) ), TEAM_GetName( ulTeamIdx ) ); | |
779 | + sprintf( szString, "\\c%s%s WINS!", TEAM_GetTextColorName( ulTeamIdx ), TEAM_GetName( ulTeamIdx ) ); | |
780 | 780 | else |
781 | 781 | sprintf( szString, "DRAW GAME!\n" ); |
782 | 782 |
@@ -962,6 +962,16 @@ | ||
962 | 962 | |
963 | 963 | //***************************************************************************** |
964 | 964 | // |
965 | +const char *TEAM_GetTextColorName( ULONG ulTeamIdx ) | |
966 | +{ | |
967 | + if (( TEAM_CheckIfValid( ulTeamIdx )) && ( teams[ulTeamIdx].TextColor.IsNotEmpty( ))) | |
968 | + return ( teams[ulTeamIdx].TextColor.GetChars( )); | |
969 | + | |
970 | + return ( "Untranslated" ); | |
971 | +} | |
972 | + | |
973 | +//***************************************************************************** | |
974 | +// | |
965 | 975 | ULONG TEAM_GetTextColor( ULONG ulTeamIdx ) |
966 | 976 | { |
967 | 977 | if ( TEAM_CheckIfValid( ulTeamIdx )) |
@@ -1058,7 +1068,7 @@ | ||
1058 | 1068 | |
1059 | 1069 | if ( TEAM_GetScore( ulTeamIdx ) >= (LONG)pointlimit ) |
1060 | 1070 | { |
1061 | - NETWORK_Printf( "\034%c%s " TEXTCOLOR_NORMAL "has won the game!\n", V_GetColorChar( TEAM_GetTextColor( ulTeamIdx )), TEAM_GetName( ulTeamIdx )); | |
1071 | + NETWORK_Printf( "\034%s%s " TEXTCOLOR_NORMAL "has won the game!\n", TEAM_GetTextColorName( ulTeamIdx ), TEAM_GetName( ulTeamIdx )); | |
1062 | 1072 | |
1063 | 1073 | // Do the win sequence for the winner. |
1064 | 1074 | TEAM_DoWinSequence( ulTeamIdx ); |
@@ -2064,7 +2074,7 @@ | ||
2064 | 2074 | { |
2065 | 2075 | if ( players[consoleplayer].bOnTeam ) |
2066 | 2076 | { |
2067 | - Printf( "You are on the \034%c%s " TEXTCOLOR_NORMAL "team.\n", V_GetColorChar( TEAM_GetTextColor( players[consoleplayer].Team ) ), TEAM_GetName( players[consoleplayer].Team ) ); | |
2077 | + Printf( "You are on the \034%s%s " TEXTCOLOR_NORMAL "team.\n", TEAM_GetTextColorName( players[consoleplayer].Team ), TEAM_GetName( players[consoleplayer].Team ) ); | |
2068 | 2078 | } |
2069 | 2079 | else |
2070 | 2080 | Printf( "You are not currently on a team.\n" ); |
@@ -2266,12 +2276,12 @@ | ||
2266 | 2276 | // Player was on a team, so tell everyone that he's changing teams. |
2267 | 2277 | if ( bOnTeam ) |
2268 | 2278 | { |
2269 | - Printf( "%s defected to the \034%c%s " TEXTCOLOR_NORMAL "team.\n", players[consoleplayer].userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( players[consoleplayer].Team ) ), TEAM_GetName( players[consoleplayer].Team )); | |
2279 | + Printf( "%s defected to the \034%s%s " TEXTCOLOR_NORMAL "team.\n", players[consoleplayer].userinfo.GetName(), TEAM_GetTextColorName( players[consoleplayer].Team ), TEAM_GetName( players[consoleplayer].Team )); | |
2270 | 2280 | } |
2271 | 2281 | // Otherwise, tell everyone he's joining a team. |
2272 | 2282 | else |
2273 | 2283 | { |
2274 | - Printf( "%s joined the \034%c%s " TEXTCOLOR_NORMAL "team.\n", players[consoleplayer].userinfo.GetName(), V_GetColorChar( TEAM_GetTextColor( players[consoleplayer].Team ) ), TEAM_GetName( players[consoleplayer].Team )); | |
2284 | + Printf( "%s joined the \034%s%s " TEXTCOLOR_NORMAL "team.\n", players[consoleplayer].userinfo.GetName(), TEAM_GetTextColorName( players[consoleplayer].Team ), TEAM_GetName( players[consoleplayer].Team )); | |
2275 | 2285 | } |
2276 | 2286 | |
2277 | 2287 | if ( players[consoleplayer].mo ) |
@@ -104,6 +104,7 @@ | ||
104 | 104 | void TEAM_SetColor( ULONG ulTeamIdx, int r, int g, int b ); |
105 | 105 | bool TEAM_IsCustomPlayerColorAllowed( ULONG ulTeamIdx ); |
106 | 106 | |
107 | +const char *TEAM_GetTextColorName( ULONG ulTeamIdx ); | |
107 | 108 | ULONG TEAM_GetTextColor( ULONG ulTeamIdx ); |
108 | 109 | void TEAM_SetTextColor( ULONG ulTeamIdx, USHORT usColor ); |
109 | 110 |
@@ -699,12 +699,6 @@ | ||
699 | 699 | String = "Player"; |
700 | 700 | } |
701 | 701 | |
702 | -// [RC] Converts COL_ numbers to their \c counterparts. | |
703 | -char V_GetColorChar( ULONG ulColor ) | |
704 | -{ | |
705 | - return (char) ( 97 + (int) ulColor ); | |
706 | -} | |
707 | - | |
708 | 702 | // [RC] Escapes quotes and backslashes. |
709 | 703 | void V_EscapeBacklashes( FString &String ) |
710 | 704 | { |
@@ -86,7 +86,6 @@ | ||
86 | 86 | void V_RemoveColorCodes( FString &String ); |
87 | 87 | void V_RemoveColorCodes( char *pszString ); |
88 | 88 | void V_StripColors( char *pszString ); |
89 | -char V_GetColorChar( ULONG ulColor ); | |
90 | 89 | void V_EscapeBacklashes( FString &String ); |
91 | 90 | void V_RemoveTrailingCrap( char *pszString ); |
92 | 91 | void V_RemoveTrailingCrapFromFString( FString &String ); |