| 53 | } |
| 54 | |
| 55 | void 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 | |
| 65 | vec2 CFlow::Get(vec2 Pos) |
| 66 | { |
no outgoing calls
no test coverage detected