mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed the shooting through walls
This commit is contained in:
parent
8cfd2485fd
commit
9c18cc7432
|
@ -448,7 +448,8 @@ void projectile::tick()
|
|||
|
||||
lifespan--;
|
||||
|
||||
int collide = col_check_point((int)curpos.x, (int)curpos.y);
|
||||
int collide = col_intersect_line(prevpos, curpos, &curpos);
|
||||
//int collide = col_check_point((int)curpos.x, (int)curpos.y);
|
||||
|
||||
vec2 new_pos;
|
||||
entity *targetplayer = (entity*)intersect_player(prevpos, curpos, 6.0f, new_pos, powner);
|
||||
|
|
Loading…
Reference in a new issue