Revision | 98cb660c71b2f13a6f9aada53b2b642b3bb10849 (tree) |
---|---|
Time | 2022-02-11 02:24:32 |
Author | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Renamed TEAM_GetScore and TEAM_SetScore to TEAM_GetPointCount and TEAM_SetPointCount respectively.
@@ -224,7 +224,7 @@ | ||
224 | 224 | { |
225 | 225 | for ( ULONG i = 0; i < teams.Size( ); i++ ) |
226 | 226 | { |
227 | - if ( TEAM_GetScore( players[consoleplayer].Team ) < TEAM_GetScore( i )) | |
227 | + if ( TEAM_GetPointCount( players[consoleplayer].Team ) < TEAM_GetPointCount( i )) | |
228 | 228 | return ( false ); |
229 | 229 | } |
230 | 230 | } |
@@ -6204,7 +6204,7 @@ | ||
6204 | 6204 | break; |
6205 | 6205 | |
6206 | 6206 | case TEAMSCORE_POINTS: |
6207 | - TEAM_SetScore( ulTeam, lScore, bAnnounce ); | |
6207 | + TEAM_SetPointCount( ulTeam, lScore, bAnnounce ); | |
6208 | 6208 | break; |
6209 | 6209 | |
6210 | 6210 | case TEAMSCORE_WINS: |
@@ -163,8 +163,8 @@ | ||
163 | 163 | { |
164 | 164 | if(PointOwners[i] != 255) |
165 | 165 | { |
166 | - TEAM_SetScore(PointOwners[i], TEAM_GetScore(PointOwners[i]) + 1, false); | |
167 | - if( pointlimit && (TEAM_GetScore(PointOwners[i]) >= pointlimit) ) | |
166 | + TEAM_SetPointCount(PointOwners[i], TEAM_GetPointCount(PointOwners[i]) + 1, false); | |
167 | + if( pointlimit && (TEAM_GetPointCount(PointOwners[i]) >= pointlimit) ) | |
168 | 168 | { |
169 | 169 | DOMINATION_WinSequence(0); |
170 | 170 | break; |
@@ -780,7 +780,7 @@ | ||
780 | 780 | ulCurXPos + TexMan[szPatchName]->GetWidth( ) / 2, |
781 | 781 | ulCurYPos ); |
782 | 782 | |
783 | - sprintf( szString, "%d", static_cast<int>( TEAM_GetScore( i ))); | |
783 | + sprintf( szString, "%d", static_cast<int>( TEAM_GetPointCount( i ))); | |
784 | 784 | HUD_DrawText( ConFont, TEAM_GetTextColor( i ), |
785 | 785 | ulCurXPos + TexMan[szPatchName]->GetWidth( ) + 16, |
786 | 786 | ulCurYPos - ( TexMan[szPatchName]->GetHeight( ) / 2 ) - ( ConFont->GetHeight( ) / 2 ), |
@@ -808,7 +808,7 @@ | ||
808 | 808 | else |
809 | 809 | { |
810 | 810 | for ( ULONG i = 0; i < teams.Size( ); i++ ) |
811 | - lPoints[i] = TEAM_GetScore( i ); | |
811 | + lPoints[i] = TEAM_GetPointCount( i ); | |
812 | 812 | } |
813 | 813 | ulCurXPos = 4; |
814 | 814 | ulCurYPos = screenHeight - 4 - ( TexMan["MEDIA0"]->GetHeight( ) + 4 ) - ( TexMan["ARM1A0"]->GetHeight( ) + 4 ) - 14; |
@@ -1076,7 +1076,7 @@ | ||
1076 | 1076 | TEAM_SetFragCount( i, 0, false ); |
1077 | 1077 | TEAM_SetDeathCount( i, 0 ); |
1078 | 1078 | TEAM_SetWinCount( i, 0, false ); |
1079 | - TEAM_SetScore( i, 0, false ); | |
1079 | + TEAM_SetPointCount( i, 0, false ); | |
1080 | 1080 | TEAM_SetAnnouncedLeadState( i, false ); |
1081 | 1081 | |
1082 | 1082 | // Also, reset the return ticks. |
@@ -435,7 +435,7 @@ | ||
435 | 435 | if (( TEAM_GetSimpleCTFSTMode( )) && ( NETWORK_InClientMode() == false )) |
436 | 436 | { |
437 | 437 | // Give his team a point. |
438 | - TEAM_SetScore( Owner->player->Team, TEAM_GetScore( Owner->player->Team ) + 1, true ); | |
438 | + TEAM_SetPointCount( Owner->player->Team, TEAM_GetPointCount( Owner->player->Team ) + 1, true ); | |
439 | 439 | PLAYER_SetPoints ( Owner->player, Owner->player->lPointCount + 1 ); |
440 | 440 | |
441 | 441 | // Award the scorer with a "Capture!" medal. |
@@ -879,7 +879,7 @@ | ||
879 | 879 | if (( TEAM_GetSimpleCTFSTMode( )) && ( NETWORK_InClientMode() == false )) |
880 | 880 | { |
881 | 881 | // Give his team a point. |
882 | - TEAM_SetScore( Owner->player->Team, TEAM_GetScore( Owner->player->Team ) + 1, true ); | |
882 | + TEAM_SetPointCount( Owner->player->Team, TEAM_GetPointCount( Owner->player->Team ) + 1, true ); | |
883 | 883 | PLAYER_SetPoints ( Owner->player, Owner->player->lPointCount + 1 ); |
884 | 884 | |
885 | 885 | // Award the scorer with a "Capture!" medal. |
@@ -1447,7 +1447,7 @@ | ||
1447 | 1447 | break; |
1448 | 1448 | // [BB] |
1449 | 1449 | case TEAMSCORE: |
1450 | - num = TEAM_GetScore(valueArgument); | |
1450 | + num = TEAM_GetPointCount(valueArgument); | |
1451 | 1451 | break; |
1452 | 1452 | case POWERUPTIME: |
1453 | 1453 | { |
@@ -2859,7 +2859,7 @@ | ||
2859 | 2859 | break; |
2860 | 2860 | // [BB] |
2861 | 2861 | case TEAMSCORE: |
2862 | - value = TEAM_GetScore(typeArgument); | |
2862 | + value = TEAM_GetPointCount(typeArgument); | |
2863 | 2863 | max = pointlimit; |
2864 | 2864 | break; |
2865 | 2865 | case INVENTORY: |
@@ -849,7 +849,7 @@ | ||
849 | 849 | else if ( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNWINS ) |
850 | 850 | return TEAM_GetWinCount( t ); |
851 | 851 | |
852 | - return TEAM_GetScore( t ); | |
852 | + return TEAM_GetPointCount( t ); | |
853 | 853 | } |
854 | 854 | |
855 | 855 | static bool TeamScoreSorter( const int& t1, const int& t2 ) |
@@ -1544,7 +1544,7 @@ | ||
1544 | 1544 | DTA_CenterBottomOffset, true, |
1545 | 1545 | TAG_DONE); |
1546 | 1546 | |
1547 | - DrBNumberOuter( MIN( (int)TEAM_GetScore( i ), 99 ), 28, lY - 29 ); | |
1547 | + DrBNumberOuter( MIN( (int)TEAM_GetPointCount( i ), 99 ), 28, lY - 29 ); | |
1548 | 1548 | |
1549 | 1549 | lY -= 51; |
1550 | 1550 | } |
@@ -1564,7 +1564,7 @@ | ||
1564 | 1564 | DTA_CenterBottomOffset, true, |
1565 | 1565 | TAG_DONE); |
1566 | 1566 | |
1567 | - DrBNumberOuter( MIN( (int)TEAM_GetScore( i ), 99 ), 16, lY - 16 ); | |
1567 | + DrBNumberOuter( MIN( (int)TEAM_GetPointCount( i ), 99 ), 16, lY - 16 ); | |
1568 | 1568 | |
1569 | 1569 | lY -= 24; |
1570 | 1570 | } |
@@ -721,7 +721,7 @@ | ||
721 | 721 | if ( ulFlags & GMF_PLAYERSEARNWINS ) |
722 | 722 | lTeamScore = TEAM_GetWinCount( ulTeam ); |
723 | 723 | else if ( ulFlags & GMF_PLAYERSEARNPOINTS ) |
724 | - lTeamScore = TEAM_GetScore( ulTeam ); | |
724 | + lTeamScore = TEAM_GetPointCount( ulTeam ); | |
725 | 725 | else |
726 | 726 | lTeamScore = TEAM_GetFragCount( ulTeam ); |
727 | 727 |
@@ -1064,7 +1064,7 @@ | ||
1064 | 1064 | else if ( ulFlags & GMF_PLAYERSEARNPOINTS ) |
1065 | 1065 | { |
1066 | 1066 | scoreName = "point"; |
1067 | - scoreFunction = &TEAM_GetScore; | |
1067 | + scoreFunction = &TEAM_GetPointCount; | |
1068 | 1068 | } |
1069 | 1069 | else if ( ulFlags & GMF_PLAYERSEARNFRAGS ) |
1070 | 1070 | { |
@@ -1566,7 +1566,7 @@ | ||
1566 | 1566 | return TEAM_GetFragCount( team ); |
1567 | 1567 | else if ( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNWINS ) |
1568 | 1568 | return TEAM_GetWinCount( team ); |
1569 | - return TEAM_GetScore( team ); | |
1569 | + return TEAM_GetPointCount( team ); | |
1570 | 1570 | } |
1571 | 1571 | |
1572 | 1572 | //============================================================================ |
@@ -1611,7 +1611,7 @@ | ||
1611 | 1611 | case TPROP_WinCount: |
1612 | 1612 | return TEAM_GetWinCount (team); |
1613 | 1613 | case TPROP_PointCount: |
1614 | - return TEAM_GetScore (team); | |
1614 | + return TEAM_GetPointCount (team); | |
1615 | 1615 | case TPROP_ReturnTics: |
1616 | 1616 | return TEAM_GetReturnTicks (team); |
1617 | 1617 | case TPROP_NumPlayers: |
@@ -9920,7 +9920,7 @@ | ||
9920 | 9920 | else if ( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNWINS ) |
9921 | 9921 | PushToStack( TEAM_GetWinCount( 0 )); |
9922 | 9922 | else |
9923 | - PushToStack( TEAM_GetScore( 0 )); | |
9923 | + PushToStack( TEAM_GetPointCount( 0 )); | |
9924 | 9924 | break; |
9925 | 9925 | case PCD_REDTEAMSCORE: |
9926 | 9926 |
@@ -9929,7 +9929,7 @@ | ||
9929 | 9929 | else if ( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNWINS ) |
9930 | 9930 | PushToStack( TEAM_GetWinCount( 1 )); |
9931 | 9931 | else |
9932 | - PushToStack( TEAM_GetScore( 1 )); | |
9932 | + PushToStack( TEAM_GetPointCount( 1 )); | |
9933 | 9933 | break; |
9934 | 9934 | case PCD_ISONEFLAGCTF: |
9935 | 9935 |
@@ -2116,7 +2116,7 @@ | ||
2116 | 2116 | if ( !it || !it->player || it->player->bOnTeam == false ) |
2117 | 2117 | return ( false ); |
2118 | 2118 | |
2119 | - TEAM_SetScore( it->player->Team, TEAM_GetScore( it->player->Team ) + arg0, true ); | |
2119 | + TEAM_SetPointCount( it->player->Team, TEAM_GetPointCount( it->player->Team ) + arg0, true ); | |
2120 | 2120 | PLAYER_SetPoints ( it->player, it->player->lPointCount + arg0 ); |
2121 | 2121 | |
2122 | 2122 | return ( false ); |
@@ -2138,7 +2138,7 @@ | ||
2138 | 2138 | return ( false ); |
2139 | 2139 | |
2140 | 2140 | // Give the point(s) to the team. |
2141 | - TEAM_SetScore( arg0, TEAM_GetScore( arg0 ) + arg1, !!arg2 ); | |
2141 | + TEAM_SetPointCount( arg0, TEAM_GetPointCount( arg0 ) + arg1, !!arg2 ); | |
2142 | 2142 | |
2143 | 2143 | if ( it && it->player && it->player->bOnTeam ) |
2144 | 2144 | { |
@@ -466,14 +466,14 @@ | ||
466 | 466 | |
467 | 467 | // If the player's on a team in team possession mode, give the player's point a team. |
468 | 468 | if ( teampossession && pPlayer->bOnTeam ) |
469 | - TEAM_SetScore( pPlayer->Team, TEAM_GetScore( pPlayer->Team ) + 1, true ); | |
469 | + TEAM_SetPointCount( pPlayer->Team, TEAM_GetPointCount( pPlayer->Team ) + 1, true ); | |
470 | 470 | |
471 | 471 | // Refresh the HUD since there's bound to be changes. |
472 | 472 | HUD_Refresh( ); |
473 | 473 | |
474 | 474 | // Determine if the pointlimit has been reached. |
475 | 475 | if (( teampossession ) && ( pPlayer->bOnTeam )) |
476 | - bPointLimitReached = ( pointlimit && ( TEAM_GetScore( pPlayer->Team ) >= pointlimit )); | |
476 | + bPointLimitReached = ( pointlimit && ( TEAM_GetPointCount( pPlayer->Team ) >= pointlimit )); | |
477 | 477 | else |
478 | 478 | bPointLimitReached = ( pointlimit && ( pPlayer->lPointCount >= pointlimit )); |
479 | 479 |
@@ -639,7 +639,7 @@ | ||
639 | 639 | |
640 | 640 | // If the player's on a team in team possession mode, give the player's point a team. |
641 | 641 | if ( teampossession && g_pPossessionArtifactCarrier->bOnTeam ) |
642 | - TEAM_SetScore( g_pPossessionArtifactCarrier->Team, TEAM_GetScore( g_pPossessionArtifactCarrier->Team ) + 1, true ); | |
642 | + TEAM_SetPointCount( g_pPossessionArtifactCarrier->Team, TEAM_GetPointCount( g_pPossessionArtifactCarrier->Team ) + 1, true ); | |
643 | 643 | |
644 | 644 | NETWORK_Printf( "%s\n", GStrings( "TXT_TIMELIMIT" )); |
645 | 645 | GAME_SetEndLevelDelay( 5 * TICRATE ); |
@@ -712,7 +712,7 @@ | ||
712 | 712 | |
713 | 713 | // First, determine if the pointlimit has been reached. |
714 | 714 | if (( teampossession ) && ( players[ulPlayer].bOnTeam )) |
715 | - bPointLimitReached = ( pointlimit && ( TEAM_GetScore( players[ulPlayer].Team ) >= pointlimit )); | |
715 | + bPointLimitReached = ( pointlimit && ( TEAM_GetPointCount( players[ulPlayer].Team ) >= pointlimit )); | |
716 | 716 | else |
717 | 717 | bPointLimitReached = ( pointlimit && ( players[ulPlayer].lPointCount >= pointlimit )); |
718 | 718 |
@@ -2517,7 +2517,7 @@ | ||
2517 | 2517 | break; |
2518 | 2518 | |
2519 | 2519 | case TEAMSCORE_POINTS: |
2520 | - lScore = TEAM_GetScore( ulTeam ); | |
2520 | + lScore = TEAM_GetPointCount( ulTeam ); | |
2521 | 2521 | break; |
2522 | 2522 | |
2523 | 2523 | case TEAMSCORE_WINS: |
@@ -3110,7 +3110,7 @@ | ||
3110 | 3110 | { |
3111 | 3111 | for ( ULONG i = 0; i < teams.Size( ); i++ ) |
3112 | 3112 | { |
3113 | - TEAM_SetScore( i, 0, false ); | |
3113 | + TEAM_SetPointCount( i, 0, false ); | |
3114 | 3114 | TEAM_SetFragCount( i, 0, false ); |
3115 | 3115 | TEAM_SetDeathCount( i, 0 ); |
3116 | 3116 | TEAM_SetWinCount( i, 0, false ); |
@@ -490,7 +490,7 @@ | ||
490 | 490 | else if ( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNWINS ) |
491 | 491 | g_MasterServerBuffer.ByteStream.WriteShort( TEAM_GetWinCount( ulIdx )); |
492 | 492 | else |
493 | - g_MasterServerBuffer.ByteStream.WriteShort( TEAM_GetScore( ulIdx )); | |
493 | + g_MasterServerBuffer.ByteStream.WriteShort( TEAM_GetPointCount( ulIdx )); | |
494 | 494 | } |
495 | 495 | } |
496 | 496 | } |
@@ -553,7 +553,7 @@ | ||
553 | 553 | else if ( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNWINS ) |
554 | 554 | g_MasterServerBuffer.ByteStream.WriteShort( TEAM_GetWinCount( ulIdx )); |
555 | 555 | else |
556 | - g_MasterServerBuffer.ByteStream.WriteShort( TEAM_GetScore( ulIdx )); | |
556 | + g_MasterServerBuffer.ByteStream.WriteShort( TEAM_GetPointCount( ulIdx )); | |
557 | 557 | } |
558 | 558 | } |
559 | 559 | } |
@@ -110,7 +110,7 @@ | ||
110 | 110 | { |
111 | 111 | for ( ULONG i = 0; i < teams.Size( ); i++ ) |
112 | 112 | { |
113 | - TEAM_SetScore( i, 0, false ); | |
113 | + TEAM_SetPointCount( i, 0, false ); | |
114 | 114 | TEAM_SetReturnTicks( i, 0 ); |
115 | 115 | TEAM_SetFragCount( i, 0, false ); |
116 | 116 | TEAM_SetDeathCount( i, 0 ); |
@@ -174,7 +174,7 @@ | ||
174 | 174 | { |
175 | 175 | for ( ULONG i = 0; i < teams.Size( ); i++ ) |
176 | 176 | { |
177 | - TEAM_SetScore( i, 0, false ); | |
177 | + TEAM_SetPointCount( i, 0, false ); | |
178 | 178 | TEAM_SetReturnTicks( i, 0 ); |
179 | 179 | TEAM_SetFragCount( i, 0, false ); |
180 | 180 | TEAM_SetDeathCount( i, 0 ); |
@@ -427,8 +427,8 @@ | ||
427 | 427 | } |
428 | 428 | else |
429 | 429 | { |
430 | - if ( lLowestScoreCount > TEAM_GetScore( i )) | |
431 | - lLowestScoreCount = TEAM_GetScore( i ); | |
430 | + if ( lLowestScoreCount > TEAM_GetPointCount( i )) | |
431 | + lLowestScoreCount = TEAM_GetPointCount( i ); | |
432 | 432 | } |
433 | 433 | } |
434 | 434 |
@@ -439,7 +439,7 @@ | ||
439 | 439 | else if ( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNWINS ) |
440 | 440 | lGotScore[i] = TEAM_GetWinCount( i ); |
441 | 441 | else |
442 | - lGotScore[i] = TEAM_GetScore( i ); | |
442 | + lGotScore[i] = TEAM_GetPointCount( i ); | |
443 | 443 | } |
444 | 444 | |
445 | 445 | for ( ULONG i = 0; i < teams.Size( ); i++ ) |
@@ -594,7 +594,7 @@ | ||
594 | 594 | SERVERCOMMANDS_PrintHUDMessage( szString, 1.5f, TEAM_MESSAGE_Y_AXIS_SUB, 0, 0, HUDMESSAGETYPE_FADEOUT, CR_BLUE, 3.0f, 0.0f, 0.5f, "SmallFont", MAKE_ID( 'S', 'U', 'B', 'S' ) ); |
595 | 595 | |
596 | 596 | // Give his team a point. |
597 | - TEAM_SetScore( pPlayer->Team, TEAM_GetScore( pPlayer->Team ) + ulNumPoints, true ); | |
597 | + TEAM_SetPointCount( pPlayer->Team, TEAM_GetPointCount( pPlayer->Team ) + ulNumPoints, true ); | |
598 | 598 | PLAYER_SetPoints ( pPlayer, pPlayer->lPointCount + ulNumPoints ); |
599 | 599 | |
600 | 600 | // Take the skull away. |
@@ -824,7 +824,7 @@ | ||
824 | 824 | { |
825 | 825 | if ( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNPOINTS ) |
826 | 826 | { |
827 | - if ( lHighestScore == static_cast<unsigned> (TEAM_GetScore( i ))) | |
827 | + if ( lHighestScore == static_cast<unsigned> (TEAM_GetPointCount( i ))) | |
828 | 828 | { |
829 | 829 | ulLeadingTeamsCount++; |
830 | 830 | lWinner = i; |
@@ -1020,26 +1020,26 @@ | ||
1020 | 1020 | |
1021 | 1021 | //***************************************************************************** |
1022 | 1022 | // |
1023 | -LONG TEAM_GetScore( ULONG ulTeamIdx ) | |
1023 | +LONG TEAM_GetPointCount( ULONG ulTeamIdx ) | |
1024 | 1024 | { |
1025 | 1025 | if ( TEAM_CheckIfValid( ulTeamIdx )) |
1026 | - return ( teams[ulTeamIdx].lScore ); | |
1026 | + return ( teams[ulTeamIdx].lPointCount ); | |
1027 | 1027 | else |
1028 | 1028 | return ( 0 ); |
1029 | 1029 | } |
1030 | 1030 | |
1031 | 1031 | //***************************************************************************** |
1032 | 1032 | // |
1033 | -void TEAM_SetScore( ULONG ulTeamIdx, LONG lScore, bool bAnnouncer ) | |
1033 | +void TEAM_SetPointCount( ULONG ulTeamIdx, LONG lPointCount, bool bAnnouncer ) | |
1034 | 1034 | { |
1035 | - LONG lOldScore; | |
1035 | + LONG lOldPointCount; | |
1036 | 1036 | |
1037 | 1037 | if ( TEAM_CheckIfValid( ulTeamIdx ) == false ) |
1038 | 1038 | return; |
1039 | 1039 | |
1040 | - lOldScore = TEAM_GetScore( ulTeamIdx ); | |
1041 | - teams[ulTeamIdx].lScore = lScore; | |
1042 | - if ( bAnnouncer && ( TEAM_GetScore( ulTeamIdx ) > lOldScore )) | |
1040 | + lOldPointCount = TEAM_GetPointCount( ulTeamIdx ); | |
1041 | + teams[ulTeamIdx].lPointCount = lPointCount; | |
1042 | + if ( bAnnouncer && ( TEAM_GetPointCount( ulTeamIdx ) > lOldPointCount )) | |
1043 | 1043 | { |
1044 | 1044 | // Build the message. |
1045 | 1045 | // Whatever the team's name is, is the first part of the message. For example: |
@@ -1066,7 +1066,7 @@ | ||
1066 | 1066 | if ( pointlimit <= 0 || NETWORK_InClientMode() ) |
1067 | 1067 | return; |
1068 | 1068 | |
1069 | - if ( TEAM_GetScore( ulTeamIdx ) >= (LONG)pointlimit ) | |
1069 | + if ( TEAM_GetPointCount( ulTeamIdx ) >= (LONG)pointlimit ) | |
1070 | 1070 | { |
1071 | 1071 | NETWORK_Printf( "\034%s%s " TEXTCOLOR_NORMAL "has won the game!\n", TEAM_GetTextColorName( ulTeamIdx ), TEAM_GetName( ulTeamIdx )); |
1072 | 1072 |
@@ -1596,8 +1596,8 @@ | ||
1596 | 1596 | if ( teamgame == false && TEAM_CountPlayers( i ) < 1 ) |
1597 | 1597 | continue; |
1598 | 1598 | |
1599 | - if ( lScoreCount < TEAM_GetScore( i )) | |
1600 | - lScoreCount = TEAM_GetScore( i ); | |
1599 | + if ( lScoreCount < TEAM_GetPointCount( i )) | |
1600 | + lScoreCount = TEAM_GetPointCount( i ); | |
1601 | 1601 | } |
1602 | 1602 | |
1603 | 1603 | return lScoreCount; |
@@ -1655,7 +1655,7 @@ | ||
1655 | 1655 | // |
1656 | 1656 | LONG TEAM_GetScoreCountSpread ( ULONG ulTeam ) |
1657 | 1657 | { |
1658 | - return TEAM_GetSpread ( ulTeam, &TEAM_GetScore ); | |
1658 | + return TEAM_GetSpread ( ulTeam, &TEAM_GetPointCount ); | |
1659 | 1659 | } |
1660 | 1660 | |
1661 | 1661 | //***************************************************************************** |
@@ -111,8 +111,8 @@ | ||
111 | 111 | LONG TEAM_GetRailgunColor( ULONG ulTeamIdx ); |
112 | 112 | void TEAM_SetRailgunColor( ULONG ulTeamIdx, LONG lColor ); |
113 | 113 | |
114 | -LONG TEAM_GetScore( ULONG ulTeamIdx ); | |
115 | -void TEAM_SetScore( ULONG ulTeamIdx, LONG lScore, bool bAnnouncer ); | |
114 | +LONG TEAM_GetPointCount( ULONG ulTeamIdx ); | |
115 | +void TEAM_SetPointCount( ULONG ulTeamIdx, LONG lPointCount, bool bAnnouncer ); | |
116 | 116 | |
117 | 117 | const char *TEAM_GetSmallHUDIcon( ULONG ulTeamIdx ); |
118 | 118 | void TEAM_SetSmallHUDIcon( ULONG ulTeamIdx, const char *pszName, bool bFlag ); |
@@ -78,7 +78,7 @@ | ||
78 | 78 | LONG lRailColor; |
79 | 79 | |
80 | 80 | // Current amount of points this team has. |
81 | - LONG lScore; | |
81 | + LONG lPointCount; | |
82 | 82 | |
83 | 83 | // Icon that appears over a player that posseses this team's "flag". |
84 | 84 | // statenum_t Icon; |
@@ -396,7 +396,7 @@ | ||
396 | 396 | if ( players[consoleplayer].bOnTeam == false ) |
397 | 397 | return ( 2 ); |
398 | 398 | |
399 | - if ( TEAM_GetScore( players[consoleplayer].Team ) == TEAM_GetHighestScoreCount( )) | |
399 | + if ( TEAM_GetPointCount( players[consoleplayer].Team ) == TEAM_GetHighestScoreCount( )) | |
400 | 400 | return ( 1 ); |
401 | 401 | else |
402 | 402 | return ( 2 ); |
@@ -1438,7 +1438,7 @@ | ||
1438 | 1438 | } |
1439 | 1439 | else if (( teamgame || teampossession ) && ( players[consoleplayer].bOnTeam )) |
1440 | 1440 | { |
1441 | - cnt_Frags = TEAM_GetScore( players[consoleplayer].Team ); | |
1441 | + cnt_Frags = TEAM_GetPointCount( players[consoleplayer].Team ); | |
1442 | 1442 | cnt_Deaths = TEAM_GetFragCount( players[consoleplayer].Team ); |
1443 | 1443 | cnt_Rank = WI_CalcRank( ); |
1444 | 1444 | cnt_NumPlayers = SERVER_CountPlayers( true ); |
@@ -1489,9 +1489,9 @@ | ||
1489 | 1489 | } |
1490 | 1490 | else if (( teamgame || teampossession ) && ( players[consoleplayer].bOnTeam )) |
1491 | 1491 | { |
1492 | - if ( cnt_Frags >= TEAM_GetScore( players[consoleplayer].Team )) | |
1492 | + if ( cnt_Frags >= TEAM_GetPointCount( players[consoleplayer].Team )) | |
1493 | 1493 | { |
1494 | - cnt_Frags = TEAM_GetScore( players[consoleplayer].Team ); | |
1494 | + cnt_Frags = TEAM_GetPointCount( players[consoleplayer].Team ); | |
1495 | 1495 | S_Sound( CHAN_VOICE, "intermission/nextstage", 1, ATTN_NONE ); |
1496 | 1496 | cp_state++; |
1497 | 1497 | } |