• R/O
  • SSH

zandronum-sandbox-stable: Commit


Commit MetaInfo

Revisionb863f39847ce8700bd1afa674de498dc3c706d97 (tree)
Time2022-02-11 02:27:13
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Renamed TEAM_GetHighestScoreCount to TEAM_GetHighestPointCount.

Change Summary

Incremental Difference

diff -r 98cb660c71b2 -r b863f39847ce src/g_game.cpp
--- a/src/g_game.cpp Thu Feb 10 12:24:32 2022 -0500
+++ b/src/g_game.cpp Thu Feb 10 12:27:13 2022 -0500
@@ -1901,7 +1901,7 @@
19011901 }
19021902 else
19031903 {
1904- if ( TEAM_GetHighestScoreCount( ) >= pointlimit)
1904+ if ( TEAM_GetHighestPointCount( ) >= pointlimit)
19051905 bLimitHit = true;
19061906 }
19071907
diff -r 98cb660c71b2 -r b863f39847ce src/scoreboard.cpp
--- a/src/scoreboard.cpp Thu Feb 10 12:24:32 2022 -0500
+++ b/src/scoreboard.cpp Thu Feb 10 12:27:13 2022 -0500
@@ -264,7 +264,7 @@
264264 else if ( pointlimit && GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNPOINTS )
265265 {
266266 if ( teamgame || teampossession )
267- return ( pointlimit - TEAM_GetHighestScoreCount( ));
267+ return ( pointlimit - TEAM_GetHighestPointCount( ));
268268 else // Must be possession mode.
269269 {
270270 LONG lHighestPointCount = INT_MIN;
diff -r 98cb660c71b2 -r b863f39847ce src/team.cpp
--- a/src/team.cpp Thu Feb 10 12:24:32 2022 -0500
+++ b/src/team.cpp Thu Feb 10 12:27:13 2022 -0500
@@ -816,7 +816,7 @@
816816 if ( SERVER_CountPlayers( true ))
817817 {
818818 if ( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSEARNPOINTS )
819- lHighestScore = TEAM_GetHighestScoreCount( );
819+ lHighestScore = TEAM_GetHighestPointCount( );
820820 else
821821 lHighestScore = TEAM_GetHighestFragCount( );
822822
@@ -1587,20 +1587,20 @@
15871587
15881588 //*****************************************************************************
15891589 //
1590-LONG TEAM_GetHighestScoreCount( void )
1590+LONG TEAM_GetHighestPointCount( void )
15911591 {
1592- LONG lScoreCount = LONG_MIN;
1592+ LONG lPointCount = LONG_MIN;
15931593
15941594 for ( ULONG i = 0; i < teams.Size( ); i++ )
15951595 {
15961596 if ( teamgame == false && TEAM_CountPlayers( i ) < 1 )
15971597 continue;
15981598
1599- if ( lScoreCount < TEAM_GetPointCount( i ))
1600- lScoreCount = TEAM_GetPointCount( i );
1599+ if ( lPointCount < TEAM_GetPointCount( i ))
1600+ lPointCount = TEAM_GetPointCount( i );
16011601 }
16021602
1603- return lScoreCount;
1603+ return lPointCount;
16041604 }
16051605
16061606 //*****************************************************************************
diff -r 98cb660c71b2 -r b863f39847ce src/team.h
--- a/src/team.h Thu Feb 10 12:24:32 2022 -0500
+++ b/src/team.h Thu Feb 10 12:27:13 2022 -0500
@@ -173,7 +173,7 @@
173173
174174 LONG TEAM_GetHighestFragCount( void );
175175 LONG TEAM_GetHighestWinCount( void );
176-LONG TEAM_GetHighestScoreCount( void );
176+LONG TEAM_GetHighestPointCount( void );
177177
178178 LONG TEAM_GetSpread ( ULONG ulTeam, LONG (*GetCount) ( ULONG ulTeam ) );
179179 LONG TEAM_GetFragCountSpread ( ULONG ulTeam );
diff -r 98cb660c71b2 -r b863f39847ce src/wi_stuff.cpp
--- a/src/wi_stuff.cpp Thu Feb 10 12:24:32 2022 -0500
+++ b/src/wi_stuff.cpp Thu Feb 10 12:27:13 2022 -0500
@@ -396,7 +396,7 @@
396396 if ( players[consoleplayer].bOnTeam == false )
397397 return ( 2 );
398398
399- if ( TEAM_GetPointCount( players[consoleplayer].Team ) == TEAM_GetHighestScoreCount( ))
399+ if ( TEAM_GetPointCount( players[consoleplayer].Team ) == TEAM_GetHighestPointCount( ))
400400 return ( 1 );
401401 else
402402 return ( 2 );
Show on old repository browser