MCPcopy Create free account
hub / github.com/ddnet/ddnet / Update

Method Update

src/game/client/components/flow.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void CFlow::Update()
56{
57 if(!m_pCells)
58 return;
59
60 for(int y = 0; y < m_Height; y++)
61 for(int x = 0; x < m_Width; x++)
62 m_pCells[y * m_Width + x].m_Vel *= 0.85f;
63}
64
65vec2 CFlow::Get(vec2 Pos)
66{

Callers 5

UpdateCommunityCacheMethod · 0.45
RenderMethod · 0.45
OnRenderMethod · 0.45
OnRenderMethod · 0.45
OnRenderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected