mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Mod by zero
This commit is contained in:
parent
fbf0aedfb2
commit
6cefbcbbf9
|
@ -32,7 +32,10 @@ void CRenderTools::RenderEvalEnvelope(CEnvPoint *pPoints, int NumPoints, int Cha
|
|||
}
|
||||
|
||||
int64 MaxPointTime = (int64)pPoints[NumPoints - 1].m_Time * 1000ll;
|
||||
TimeMicros = TimeMicros % MaxPointTime;
|
||||
if(MaxPointTime > 0) // TODO: remove this check when implementing a IO check for maps(in this case broken envelopes)
|
||||
TimeMicros = TimeMicros % MaxPointTime;
|
||||
else
|
||||
TimeMicros = 0;
|
||||
|
||||
int TimeMillis = (int)(TimeMicros / 1000ll);
|
||||
for(int i = 0; i < NumPoints - 1; i++)
|
||||
|
|
Loading…
Reference in a new issue