about summary refs log tree commit diff
path: root/src/game/server
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-23 12:15:30 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-23 12:15:30 +0000
commit9c18cc7432c6558c57812b4f7b38f071f7c00c92 (patch)
tree42e23b31bf15d6f456fba2cdcd273da12090116a /src/game/server
parent8cfd2485fdbd7d35d7a361d41df0c8baecfbf366 (diff)
downloadzcatch-9c18cc7432c6558c57812b4f7b38f071f7c00c92.tar.gz
zcatch-9c18cc7432c6558c57812b4f7b38f071f7c00c92.zip
fixed the shooting through walls
Diffstat (limited to 'src/game/server')
-rw-r--r--src/game/server/gs_server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/server/gs_server.cpp b/src/game/server/gs_server.cpp
index 93cd0695..72bb7285 100644
--- a/src/game/server/gs_server.cpp
+++ b/src/game/server/gs_server.cpp
@@ -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);