games/teeworlds: fix build, add extra WWW
This commit is contained in:
parent
09742b5376
commit
aed152b18c
@ -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++)
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user