git: aed152b18cd5 - main - games/teeworlds: fix build, add extra WWW

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 17 May 2022 14:46:40 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aed152b18cd581684d43008d1894941732d294a7

commit aed152b18cd581684d43008d1894941732d294a7
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-05-17 11:44:57 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-05-17 14:41:55 +0000

    games/teeworlds: fix build, add extra WWW
---
 games/teeworlds/files/patch-CVE-2021-43518 | 4 ++--
 games/teeworlds/pkg-descr                  | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/games/teeworlds/files/patch-CVE-2021-43518 b/games/teeworlds/files/patch-CVE-2021-43518
index b7cd56cd9e69..8dba0a4dc00b 100644
--- a/games/teeworlds/files/patch-CVE-2021-43518
+++ b/games/teeworlds/files/patch-CVE-2021-43518
@@ -13,7 +13,7 @@ index 24d09509..bbaaa821 100644
  				p.m_Curvetype = pEnvPoint_v1->m_Curvetype;
  
 -				for(int c = 0; c < pItem->m_Channels; c++)
-+				for(int c = 0; c < minimum(pItem->m_Channels, 4); c++)
++				for(int c = 0; c < std::min(pItem->m_Channels, 4); c++)
  				{
  					p.m_aValues[c] = pEnvPoint_v1->m_aValues[c];
  					p.m_aInTangentdx[c] = 0;
@@ -26,7 +26,7 @@ index 160bb1c6..2bedb06e 100644
  			{
  				CMapItemEnvelope *pItem = (CMapItemEnvelope *)DataFile.GetItem(Start+e, 0, 0);
 -				CEnvelope *pEnv = new CEnvelope(pItem->m_Channels);
-+				const int Channels = minimum(pItem->m_Channels, 4);
++				const int Channels = std::min(pItem->m_Channels, 4);
 +				CEnvelope *pEnv = new CEnvelope(Channels);
  				pEnv->m_lPoints.set_size(pItem->m_NumPoints);
  				for(int n = 0; n < pItem->m_NumPoints; n++)
diff --git a/games/teeworlds/pkg-descr b/games/teeworlds/pkg-descr
index 3423a51c18eb..57213ef5d950 100644
--- a/games/teeworlds/pkg-descr
+++ b/games/teeworlds/pkg-descr
@@ -14,3 +14,4 @@ that happens is fast-paced and happens in real-time. It supports
 CTF mode.
 
 WWW: https://www.teeworlds.com/
+WWW: https://github.com/teeworlds/teeworlds/