summaryrefslogtreecommitdiff
path: root/src/shot.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-19 19:32:50 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-19 19:32:50 +0000
commit01d613a7ccf695090262c9e22c396251146f00bd (patch)
tree3f176dd05944d108259f02d968e5b221704fb274 /src/shot.c
parent11239bc45b51f9cc9eaec8272e58a0dea0e10b93 (diff)
- upravy v kode
git-svn-id: http://opensvn.csie.org/tuxanci_ng@27 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/shot.c')
-rw-r--r--src/shot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shot.c b/src/shot.c
index d105a5c..f9cfdb1 100644
--- a/src/shot.c
+++ b/src/shot.c
@@ -297,9 +297,12 @@ void moveShot(shot_t *shot, int position, int src_x, int src_y,
break;
}
+ shot->x += shot->px;
+ shot->y += shot->py;
+
if( getNetTypeGame() == NET_GAME_TYPE_SERVER )
{
- proto_send_shot_server(shot);
+ proto_send_shot_server(PROTO_SEND_ALL, NULL, shot);
}
}