mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #441 from timakro/master
fix hooktele on unhook, broke with new hookthrough
This commit is contained in:
commit
44d16d2374
|
@ -682,8 +682,8 @@ vec2 CCollision::CpSpeed(int Index, int Flags)
|
|||
|
||||
int CCollision::GetPureMapIndex(float x, float y)
|
||||
{
|
||||
int Nx = clamp((int)x/32, 0, m_Width-1);
|
||||
int Ny = clamp((int)y/32, 0, m_Height-1);
|
||||
int Nx = clamp(round_to_int(x)/32, 0, m_Width-1);
|
||||
int Ny = clamp(round_to_int(y)/32, 0, m_Height-1);
|
||||
return Ny*m_Width+Nx;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue