| 829 | } |
| 830 | |
| 831 | int CCollision::GetPureMapIndex(float x, float y) const |
| 832 | { |
| 833 | int Nx = std::clamp(round_to_int(x) / 32, 0, m_Width - 1); |
| 834 | int Ny = std::clamp(round_to_int(y) / 32, 0, m_Height - 1); |
| 835 | return Ny * m_Width + Nx; |
| 836 | } |
| 837 | |
| 838 | bool CCollision::TileExists(int Index) const |
| 839 | { |
no test coverage detected