fixed the shooting through walls

This commit is contained in:
Magnus Auvinen 2008-03-23 12:15:30 +00:00
parent 8cfd2485fd
commit 9c18cc7432

View file

@ -448,7 +448,8 @@ void projectile::tick()
lifespan--; 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; vec2 new_pos;
entity *targetplayer = (entity*)intersect_player(prevpos, curpos, 6.0f, new_pos, powner); entity *targetplayer = (entity*)intersect_player(prevpos, curpos, 6.0f, new_pos, powner);