mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Rename some missing round functions
This commit is contained in:
parent
32782a9629
commit
220db3b216
|
@ -115,13 +115,13 @@ void CLaser::DoBounce()
|
|||
int f = 0;
|
||||
if(Res == -1)
|
||||
{
|
||||
f = GameServer()->Collision()->GetTile(round(Coltile.x), round(Coltile.y));
|
||||
GameServer()->Collision()->SetCollisionAt(round(Coltile.x), round(Coltile.y), CCollision::COLFLAG_SOLID);
|
||||
f = GameServer()->Collision()->GetTile(round_to_int(Coltile.x), round_to_int(Coltile.y));
|
||||
GameServer()->Collision()->SetCollisionAt(round_to_int(Coltile.x), round_to_int(Coltile.y), CCollision::COLFLAG_SOLID);
|
||||
}
|
||||
GameServer()->Collision()->MovePoint(&TempPos, &TempDir, 1.0f, 0);
|
||||
if(Res == -1)
|
||||
{
|
||||
GameServer()->Collision()->SetCollisionAt(round(Coltile.x), round(Coltile.y), f);
|
||||
GameServer()->Collision()->SetCollisionAt(round_to_int(Coltile.x), round_to_int(Coltile.y), f);
|
||||
}
|
||||
m_Pos = TempPos;
|
||||
m_Dir = normalize(TempDir);
|
||||
|
|
Loading…
Reference in a new issue