summaryrefslogtreecommitdiff
path: root/src/base/tux.c
diff options
context:
space:
mode:
authorDusan Durech <dusan@debian.(none)>2008-11-26 23:13:54 +0100
committerDusan Durech <dusan@debian.(none)>2008-11-26 23:13:54 +0100
commitac06fff171f1b600cc9f470e04d58446a03b37ee (patch)
tree7dbcdfd482b94ae71ce07c1617af790bd254336c /src/base/tux.c
parented32a3daceec1d246cd5cf08a30c23b46282b699 (diff)
Less amount of code is being processed on the client side now.
Diffstat (limited to 'src/base/tux.c')
-rw-r--r--src/base/tux.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/base/tux.c b/src/base/tux.c
index 171046c..746679d 100644
--- a/src/base/tux.c
+++ b/src/base/tux.c
@@ -429,6 +429,10 @@ static void action_tux(space_t * space, tux_t * tux, shot_t * shot)
}
}
+ if (getNetTypeGame() == NET_GAME_TYPE_SERVER) {
+ proto_send_del_server(PROTO_SEND_ALL, NULL, shot->id);
+ }
+
delObjectFromSpaceWithObject(arena->spaceShot, shot, destroyShot);
}
@@ -439,6 +443,10 @@ static void action_shot(space_t * space, shot_t * shot, space_t * spaceTux)
void eventConflictTuxWithShot(arena_t * arena)
{
+ if (getNetTypeGame() == NET_GAME_TYPE_CLIENT) { // na skusku
+ return;
+ }
+
actionSpace(arena->spaceShot, action_shot, arena->spaceTux);
}