summaryrefslogtreecommitdiff
path: root/src/gun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun.c')
-rw-r--r--src/gun.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gun.c b/src/gun.c
index fbbeeb3..b46b995 100644
--- a/src/gun.c
+++ b/src/gun.c
@@ -60,11 +60,6 @@ static void addShotTrivial(tux_t *tux, int x, int y, int px, int py, int gun)
int dest_px = 0, dest_py = 0;
shot_t *shot;
- if( getNetTypeGame() == NET_GAME_TYPE_CLIENT )
- {
- return;
- }
-
modificiationCopuse(tux->position, px, py, &dest_px, &dest_py);
modificiationCopuse(tux->position, x, y, &dest_x, &dest_y);
@@ -96,6 +91,11 @@ static void addShot(tux_t *tux,int x, int y, int px, int py)
{
int gun;
+ if( getNetTypeGame() == NET_GAME_TYPE_CLIENT )
+ {
+ return;
+ }
+
if( tux->gun == GUN_LASSER )
{
gun = GUN_LASSER;
@@ -253,7 +253,6 @@ static void putInGunMine(tux_t *tux)
appendTextInTerm(msg);
#endif
-
tux->shot[tux->gun]--;
if( getNetTypeGame() != NET_GAME_TYPE_CLIENT )